코드 :
const person = { id: 1, name: { first: 'John', last: 'Doe' } } const duplicate = {...person};
결과 :
{
id: 1,
name: {
first: 'John',
last: 'Doe'
}
등록된 댓글이 없습니다.
코리아뉴스 2001 - , All right reserved. 더보기