mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
publishing v1 of action
This commit is contained in:
8
node_modules/traverse/examples/negative.js
generated
vendored
Executable file
8
node_modules/traverse/examples/negative.js
generated
vendored
Executable 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