Sha256: de38c525466056b65eea723ad9aedd8ce5fe0d0842ca50a074226cbad48301ad

Contents?: true

Size: 196 Bytes

Versions: 9

Compression:

Stored size: 196 Bytes

Contents

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);

Version data entries

9 entries across 6 versions & 4 rubygems

Version Path
boring_generators-0.5.0 tmp/templates/app_template/node_modules/traverse/examples/negative.js
boring_generators-0.4.0 tmp/templates/app_template/node_modules/traverse/examples/negative.js
trans-0.5.10 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/negative.js
trans-0.5.10 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/difflet/node_modules/traverse/examples/negative.js
trans-0.5.9 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/difflet/node_modules/traverse/examples/negative.js
trans-0.5.9 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/traverse/examples/negative.js
iron_worker_ng-0.10.1 iron_worker_examples/binary/phantom-nodejs/node_modules/phantom/node_modules/dnode-protocol/node_modules/traverse/examples/negative.js
iron_worker_ng-0.10.1 iron_worker_examples/binary/phantom-nodejs/node_modules/phantom/node_modules/dnode/node_modules/dnode-protocol/node_modules/traverse/examples/negative.js
holmes-0.0.1 lib/holmes/node_modules/detective/node_modules/burrito/node_modules/traverse/examples/negative.js