SyntaxFix
Write A Post
Hire A Developer
Questions
Y'all suffering yet the solution is simple.
var obj1 = {x: 5, y:5};
var obj2 = {...obj1}; // Boom
var obj2 = {...obj1};