I was wondering how can I create a JSON (JS) object and then clone it.
This is what I do and it works like a charm
if (typeof JSON.clone !== "function") { JSON.clone = function(obj) { return JSON.parse(JSON.stringify(obj)); }; }
1.4m articles
1.4m replys
5 comments
57.0k users