mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-08 15:57:21 +00:00
push all website files
This commit is contained in:
8
website/functions/node_modules/traverse/examples/negative.js
generated
vendored
Normal file
8
website/functions/node_modules/traverse/examples/negative.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
var traverse = require('traverse');
|
||||
var obj = [ 5, 6, -3, [ 7, 8, -2, 1 ], { f : 10, g : -13 } ];
|
||||
|
||||
traverse(obj).forEach(function (x) {
|
||||
if (x < 0) this.update(x + 128);
|
||||
});
|
||||
|
||||
console.dir(obj);
|
Reference in New Issue
Block a user