const cloneObj = function(obj){ // return JSON.parse(JSON.stringify(obj)); // "JSON" // return {...obj} // "Spread" // return Object.assign({}, obj); // "Object.assign" };
Pro tip: use ```triple backticks around text``` to write in code fences