javascript deep copy (clone) object

preview_player
Показать описание
Simple method to deep copy (clone) an object in pure javascript. No 3rd party libraries.
Sorry for the lack of sound, but I think it is still easy to understand.
Hope you find it helpful.

Рекомендации по теме
Комментарии
Автор

Nice :), any way to handle circular structure
eg.
var a = { name: "name"},
b = {a: a};
a.b = b;

raghavendrasao
Автор

HEY!! I love youuuu... Big Big Big thx <3

magyarfiu