Fast array reduce that also loops over sparse elements.
npm i arr-reduce --save
The callback is executed on every element in the supplied array:
prev: this is the "accumulator". This value is either the result of the last callback invocation, or the initial value if specified.
curr: the current array element being looped over
i: the index of the current element
arr: the array that is being looped over.
var reduce = ;;//=> '15'
Pass an initial value:
;//=> ['a', 'b', 'c']
Install dev dependencies:
npm i -d && npm
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 24, 2015.