Appframe Knowledge Base


1 hits
0

How to recursively clone a value in JavaScript

//used to copy/clone a value (supports values/arrays/objects)
//note : if you know the type you should use copyArray/copyObject instead
var firstValue = 'test',
	newValue = af.common.copyValue(firstValue);

common web · Perma link post comment Posted by: Øystein Kaldestad (12-apr-2013)