반응형
See the Pen 200918-13 by hwd3004 (@hwd3004) on CodePen.
어레이 디스트럭쳐링.
오브젝트 디스트럭쳐링과 비슷하다.
See the Pen 200918-14 by hwd3004 (@hwd3004) on CodePen.
배열을 리턴하는 함수도 가능.
반응형
'ES6' 카테고리의 다른 글
Renaming (0) | 2020.09.18 |
---|---|
Object Destructuring (0) | 2020.09.18 |
Array.findIndex(), Array.fill() (0) | 2020.09.18 |
Array.from() - 매우 중요 (0) | 2020.09.18 |
string 메소드 - includes(), repeat(), startsWith(), endsWith() (0) | 2020.09.18 |