# object method
총 2개의 포스트
Object method / Computed Property
Computed Property Object method Object.assign : 객체 복사 객체를 const cloneUser = user 라고 복사했을때, cloneUser의 값을 변경하면 원본의 값도 바뀐다. 복사맞아?? 이렇게 복사하면 빈객체가 user를 병합하므로, 새로운 객체가 되어 값을 변경해도 원본이 유지된다. 라고 복사하면 성별...
2022년 7월 4일
·
0개의 댓글·
0