You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
182 B
9 lines
182 B
var copy = require('../');
|
|
|
|
var xs = [ 3, 4, 5, { f: 6, g: 7 } ];
|
|
var dup = copy(xs);
|
|
dup.unshift(1, 2);
|
|
dup[5].g += 100;
|
|
|
|
console.log('original: ', xs);
|
|
console.log('copy: ', dup);
|