๐ Reference
Object.seal()
Object.seal(obj)
- Object.seal()
- ์๋ก์ด property ์ถ๊ฐ๋ ๊ธฐ์กด property ์ญ์ ๋ฅผ ๋ง์์ค๋ค.
- property ์ ์ฒด์
configurable: false
๋ฅผ ์ค์ ํ๋ ๊ฒ๊ณผ ๋์ผํ ํจ๊ณผ์ด๋ค.
Object.seal()
๋ฉ์๋๋ ๊ฐ์ฒด๋ฅผ ๋ฐ๋ดํ๋ค.
- ๊ฐ์ฒด๋ฅผ ๋ฐ๋ดํ๋ฉด ๊ทธ ๊ฐ์ฒด์๋ ์๋ก์ด property์ ์ถ๊ฐํ ์ ์๊ณ , ํ์ฌ ์กด์ฌํ๋ ๋ชจ๋ property์ ์ค์ ๋ถ๊ฐ๋ฅ ์ํ๋ก ๋ง๋ค์ด์ค๋ค.
- ํ์ง๋ง ์ฐ๊ธฐ ๊ฐ๋ฅํ property์ ๊ฐ์ ๋ฐ๋ด ํ์๋ ๋ณ๊ฒฝํ ์ ์๋ค.
Parameters
Return value