Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash cloneDeep

This method is like _.clone except that it recursively clones value.

var objects = [{ 'a': 1 }, { 'b': 2 }];
 
var deep = _.cloneDeep(objects);
console.log(deep[0] === objects[0]);
// => false
Source by lodash.com #
 
PREVIOUS NEXT
Tagged: #lodash #cloneDeep
ADD COMMENT
Topic
Name
9+1 =