jkchao / typescript-book-chinese

TypeScript Deep Dive 中文版
https://jkchao.github.io/typescript-book-chinese/
MIT License
6.53k stars 673 forks source link

something || (something = {}) #266

Closed shjames closed 2 years ago

shjames commented 2 years ago

(function(something) { something.foo = 123; })(something || (something = {}));

‘something || (something = {})’ 这写法不会报错吗?something都没有声明