[Solved] What does 3 dots actually do here
The ES6 spread operator can be used on Objects to ‘spread’ their values into another object to create a clone of that object. It is similar in concept to using Object.assign Sample const x = { a : 1 }; const y = {…x}; // y = {a:1} Equivalent to : const y = Object.assign({},x); … Read more