[JS, React]

Yuzu·2023년 8월 16일
0
  • 중첩된 객체 분해
const user = { id: 1, username: 'user1', info: { age: 30, email: 'user@example.com' } };

const { username, info: { age, email } } = user;

console.log(username); // 'user1'
console.log(age); // 30
console.log(email); // 'user@example.com'
profile
냐하

1개의 댓글

comment-user-thumbnail
2023년 8월 16일

공감하며 읽었습니다. 좋은 글 감사드립니다.

답글 달기
Powered by GraphCDN, the GraphQL CDN