Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash clone

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