Sha256: 5b129836c960d9053118ab681d73af35c375e10d32edfc15cb66b3f423e1bc5b

Contents?: true

Size: 135 Bytes

Versions: 76

Compression:

Stored size: 135 Bytes

Contents

var reduce = require('../');
var xs = [ 1, 2, 3, 4 ];
var sum = reduce(xs, function (acc, x) { return acc + x }, 0);
console.log(sum);

Version data entries

76 entries across 76 versions & 4 rubygems

Version Path
trusty-festivity-extension-2.3.28 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.27 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.26 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.25 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.24 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.23 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.22 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.21 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.20 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.19 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.18 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.17 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.16 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.15 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.14 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.13 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.12 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.11g node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.10 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js
trusty-festivity-extension-2.3.9 node_modules/bower/node_modules/shell-quote/node_modules/array-reduce/example/sum.js