Javascript/MGS-JS
자바스크립트 데이터 - Javascript Data
Object Method Object.assign() const target = { a: 1, b: 2 }; const source = { b: 4, c: 5 }; const returnedTarget = Object.assign(target, source); const newObject = Object.assign({}, target, source); console.log(target); // expected output: Object { a: 1, b: 4, c: 5 } console.log(returnedTarget); // expected output: Object { a: 1, b: 4, c: 5 } console.log(returnedTarget === target); // true conso..
2022. 7. 1. 16:23