Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript assign

const obj = { a: 1 };
const copy = Object.assign({}, obj);
console.log(copy); // { a: 1 }
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #assign
ADD COMMENT
Topic
Name
1+5 =