๐ป this, call, apply, bind
this
๋ฅผ ๊ฒฐ์ ์ง์ง ์๋๋ค.01_AboutArrowFunction
: ํ์ดํ ํจ์ ์ฌ์ฉ๋ฒ, ํด๋ก์ ํํ02_AboutDestructuring
: ๊ตฌ์กฐ ๋ถํด ํ ๋น, rest/spread
๋ฌธ๋ฒ03_AboutThis
: module.exports
, node.js
ํ๊ฒฝ์์์ this
04_AboutFunctionMethods
: ํจ์ ๋ฉ์๋, call
, apply
, bind
this
ํค์๋ : ํจ์ ์คํ์ ๋ค์ฏ๊ฐ์ง ๋ฐฉ๋ฒcall
, apply
, bind
๊ฐ๋
ํ์ตํ๋ฃจ ํ๋ฃจ ๋ฐฐ์ฐ๋ฉด์ ์ง์์ด ๋์ด๋๋ ๊ฒ์ด ์ฌ๋ฐ๊ณ ํ๋ณตํ๋ค. ์๊พธ ๋ฏธ๋๋ฅผ ์์ํ๊ฒ ๋๋ค. ๊ทธ๋ ์ง๋ง ์์ง๋ ์์์ผ ํ ๊ฒ๋ค์ด ๋๋ฏธ ๋๋ฏธ ์ฐ๋๋ฏธ๋ค.
๊ณผ์ ๋ฅผ ํตํด this, call, apply, bind ๋ฑ์ ๊ฐ๋ ์ ์ดํดํ๊ณ ๋ณต์ตํ ์ ์์๊ณ ์ด์ ๋ํด ๋ธ๋ก๊ทธ์ ์์ธํ ์ ๋ฆฌํ๋ ์๊ฐ์ ๊ผญ ๊ฐ์ ธ์ผ๊ฒ ๋ค.
ESlint
์ค์น ๋ฐ ์ ์ฉ