Answers for "how to make a copy of object in javascript"

12

copy object javascript

var x = {myProp: "value"};
var y = Object.assign({}, x);
Posted by: Guest on March-08-2020

Code answers related to "how to make a copy of object in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language