I am working on a winrt javascript project and in a situation where I want to create a object clone. How can I clone a object in javascript?
Asked
Active
Viewed 71 times
0
-
That depends on the object type, please add some code to your post. – Teemu Aug 30 '13 at 10:37
-
Maybe take a look at jQuery.extend - https://github.com/jquery/jquery/blob/master/src/core.js#L240 – jack Aug 30 '13 at 10:55
-
Se these: http://stackoverflow.com/questions/122102/most-efficient-way-to-clone-an-object – Harold Sota Aug 30 '13 at 11:54