Is there a language-level way to deep clone a JavaScript object that is supported by main browsers (desktop and mobile)? I've seen that eval(uneval(o));
is non-standard.
JSON.parse(JSON.stringify(o));
looks ugly. You don't fundemantally need to 'stringify' at the first place. Just copy the bytes from the object to somewhere else in the RAM. Anything done above this looks like an inefficiency to me.
I am surprised to see that there is not this kind of functionality in various languages...