vendredi 10 novembre 2017

What are the concerns (if any) of cloning a JavaScript object using the ES6 spread operator? [on hold]

Can you think of problems one would encounter when doing something like this?

let obj = {x: 5, y: 33, z: 11};
let objCopy = {...obj};

// do something with them




Aucun commentaire:

Enregistrer un commentaire