Chapter 06: 디스트럭처링 - 구조 분해 할당 (Destructuring)
💡 도서 모던 자바스크립트 핵심 가이드를 읽고 정리합니다. 6.1 객체 디스트럭처링 // ES6 이전 var person = { first: "Alberto", last: "Montalesi" } var first = person.first; var last = person.last; // ES6 const person = { first: "Alberto", last: "Montalesi" } const { first, last } = person; 중첩된 객체 형태로 데이터가 주어진 경우에도 사용 가능하다. const person = { name: "Alberto", last: "Montalesi", links:{ social: { facebook: "https://www.facebook.com/alb..