Package Exports
- reduce
- reduce/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reduce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reduce 
Example
Like Array.prototype.reduce but works on Object and accepts optional
this value
var reduce = require("reduce")
reduce({
key: "value"
, key2: "value2"
, ...
}, function (acc, value, key) {
/* real code */
acc[key] = value
return acc
}, {
this: "context"
}, {
initial: "value"
})Installation
npm install reduce
Contributors
- Raynos