[modern-react] 리액트 스터디 파일 추가
This commit is contained in:
3
modern-react/my-modern/destruct_nest_array.js
Normal file
3
modern-react/my-modern/destruct_nest_array.js
Normal file
@@ -0,0 +1,3 @@
|
||||
const list = [200, [300, 301, 302]];
|
||||
const [x, [y1, y2, y3]] = list;
|
||||
console.log(y1, y2, y3); // 결과: 300 301 302
|
||||
Reference in New Issue
Block a user