네임스페이스
;(function(something) {
something.foo = 123
})(something || (something = {}))
```
근본적으로 `something || (something = {})` allows an anonymous function `function(something) {}`는 존재하는 하나의 객체 (the `something ||` portion) 또는 새로운 객체에 물건을 추가합니다. (the `|| (something = {})` portion) 즉 두개의 블록을 일부 실행 경계로 나눌수 있습니다.
```ts
;(function(something) {
something.foo = 123
})(something || (something = {}))
console.log(something) // {foo:123}
;(function(something) {
something.bar = 456
})(something || (something = {}))
console.log(something) // {foo:123, bar:456}Last updated