npm install reduceLike Array.prototype.reduce but works on Object and accepts optionalthis value
`` js
var reduce = require("reduce")
reduce({
key: "value"
, key2: "value2"
, ...
}, function (acc, value, key) {
/ real code /
acc[key] = value
return acc
}, {
this: "context"
}, {
initial: "value"
})
`
npm install reduce`
- Raynos
[travis-svg]: https://secure.travis-ci.org/Raynos/reduce.svg
[travis-url]: https://travis-ci.org/Raynos/reduce