Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash clone

Creates a shallow clone of value.

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
6+9 =