On Sun, Jan 29, 2012 at 1:23 PM, David Bruant <[email protected]> wrote:
> Based on your description, it seems that the definition would be:
>
> JSON.clone = function(o){
> return JSON.parse(JSON.stringify(o));
> }
Or possibly:
JSON.clone = function(o, opt_reviver, opt_replacer) {
return JSON.parse(JSON.stringify(o, opt_replacer), opt_reviver);
};
--
Cheers,
--MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss