mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-12-15 10:11:05 +00:00
larry babby and threejs for glsl
This commit is contained in:
9
webGl/my-threejs-test/node_modules/shallow-copy/example/array.js
generated
vendored
Normal file
9
webGl/my-threejs-test/node_modules/shallow-copy/example/array.js
generated
vendored
Normal 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);
|
||||
9
webGl/my-threejs-test/node_modules/shallow-copy/example/object.js
generated
vendored
Normal file
9
webGl/my-threejs-test/node_modules/shallow-copy/example/object.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var copy = require('../');
|
||||
|
||||
var obj = { a: 3, b: 4, c: [5,6] };
|
||||
var dup = copy(obj);
|
||||
dup.b *= 111;
|
||||
dup.c.push(7);
|
||||
|
||||
console.log('original: ', obj);
|
||||
console.log('copy: ', dup);
|
||||
Reference in New Issue
Block a user