flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
9
BACK_BACK/node_modules/shallow-copy/example/array.js
generated
vendored
Executable file
9
BACK_BACK/node_modules/shallow-copy/example/array.js
generated
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue