array reduce for component
JavaScript HTML Makefile
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
LICENSE
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

reduce

array reduce

Installation

  $ component install redventures/reduce

API

var reduce = require('reduce');

var numbers = [0, 1, 2, 3, 4, 5];

var result = reduce(numbers, function(prev, curr){
  return prev + curr;
});

License

Copyright 2012-2015 Red Ventures

reduce is dual licensed under the MIT and Apache version 2.0 licenses.

See LICENSE for additional information.