const cloneObj = function(obj){ 
    // return JSON.parse(JSON.stringify(obj));  // "JSON"
    // return {...obj} // "Spread"
   // return Object.assign({}, obj);  // "Object.assign"
};
by Luka Tatarishvili
4 years ago
JavaScript
objects
1
Pro tip: use ```triple backticks around text``` to write in code fences