Answers for "es6 copy object"

12

copy object javascript

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language