What is the most efficient way to clone a JavaScript object?
May 14, 2021What is the most efficient way to clone a JavaScript object? I’ve seen:
obj = eval(uneval(o));
but that’s not cross platform (FF only). I’ve done (in Mootools 1.2) things like this:
objREAD MORE