{"_id":"object.reduce","_rev":"74371","name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2021-06-03T10:24:13.000Z","created":"2014-10-07T19:17:47.598Z","1.0.1":"2017-04-17T07:39:35.609Z","1.0.0":"2017-03-02T19:56:52.958Z","0.1.7":"2015-04-25T08:26:45.975Z","0.1.6":"2015-03-24T06:30:07.138Z","0.1.5":"2015-03-24T06:28:29.915Z","0.1.4":"2015-03-24T06:19:16.558Z","0.1.3":"2014-10-07T19:17:47.598Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.reduce.git"},"versions":{"1.0.1":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["object","reduce"],"dependencies":{"for-own":"^1.0.0","make-iterator":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"46f15d587816e56957c5b569af8b7a9656b569e9","_id":"object.reduce@1.0.1","_shasum":"6fe348f2ac7fa0f95ca621226599096825bb03ad","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"6fe348f2ac7fa0f95ca621226599096825bb03ad","size":2719,"noattachment":false,"key":"/object.reduce/-/object.reduce-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/object.reduce-1.0.1.tgz_1492414773542_0.22691922867670655"},"directories":{},"publish_time":1492414775609,"_cnpm_publish_time":1492414775609,"_hasShrinkwrap":false},"1.0.0":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["object","reduce"],"dependencies":{"for-own":"^1.0.0","make-iterator":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11"},"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"efdafa26bb16a0d87de59e030a50dac0aca52fdf","_id":"object.reduce@1.0.0","_shasum":"7f788dc47f61c0740271544711e050f9c92a7717","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"7f788dc47f61c0740271544711e050f9c92a7717","size":2698,"noattachment":false,"key":"/object.reduce/-/object.reduce-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/object.reduce-1.0.0.tgz_1488484610976_0.31945345434360206"},"directories":{},"publish_time":1488484612958,"_cnpm_publish_time":1488484612958,"_hasShrinkwrap":false},"0.1.7":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"0.1.7","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/object.reduce/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.3"},"devDependencies":{"mocha":"*","should":"^5.2.0"},"keywords":["object","reduce"],"gitHead":"55b4072cacd7e91231f52678b6c394153d90dea9","_id":"object.reduce@0.1.7","_shasum":"d180e84f72d218348af45352b55165246b95046d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"d180e84f72d218348af45352b55165246b95046d","size":2401,"noattachment":false,"key":"/object.reduce/-/object.reduce-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-0.1.7.tgz"},"directories":{},"publish_time":1429950405975,"_cnpm_publish_time":1429950405975,"_hasShrinkwrap":false},"0.1.6":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"0.1.6","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/object.reduce/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.2"},"devDependencies":{"mocha":"*","should":"^5.2.0"},"keywords":["object","reduce"],"gitHead":"207c46bdcda593d3b6e46af523eba6f04556861a","_id":"object.reduce@0.1.6","_shasum":"59e91e92b9ea179c1b3b8f6dd12d2e07832c6c01","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"59e91e92b9ea179c1b3b8f6dd12d2e07832c6c01","size":2057,"noattachment":false,"key":"/object.reduce/-/object.reduce-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-0.1.6.tgz"},"directories":{},"publish_time":1427178607138,"_cnpm_publish_time":1427178607138,"_hasShrinkwrap":false},"0.1.5":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"0.1.5","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/object.reduce/blob/master/LICENSE"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.2"},"devDependencies":{"mocha":"*","should":"^5.2.0"},"keywords":["object","reduce"],"gitHead":"6fd61fd128b1da04ccc6687f8df241cc1d7be4ce","_id":"object.reduce@0.1.5","_shasum":"58f06842fe60112737e736ba6e9c3783b224c1f2","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"58f06842fe60112737e736ba6e9c3783b224c1f2","size":3249,"noattachment":false,"key":"/object.reduce/-/object.reduce-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-0.1.5.tgz"},"directories":{},"publish_time":1427178509915,"_cnpm_publish_time":1427178509915,"_hasShrinkwrap":false},"0.1.4":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.","version":"0.1.4","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/object.reduce/blob/master/LICENSE"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.2"},"devDependencies":{"mocha":"*","should":"^5.2.0"},"keywords":["object","reduce"],"gitHead":"9cc3e4e08b599d8733587af1b777c4b898282980","_id":"object.reduce@0.1.4","_shasum":"be9b02ce9a4300434492695e4c401f7e4c2cd0d8","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"be9b02ce9a4300434492695e4c401f7e4c2cd0d8","size":3264,"noattachment":false,"key":"/object.reduce/-/object.reduce-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-0.1.4.tgz"},"directories":{},"publish_time":1427177956558,"_cnpm_publish_time":1427177956558,"_hasShrinkwrap":false},"0.1.3":{"name":"object.reduce","description":"Reduces an object to a value that is the accumulated result of running each property in the object through a callback. Executes the callback function once for each own enumerable property in the object, receiving four arguments: the initial value (or valu","version":"0.1.3","homepage":"https://github.com/jonschlinkert/object.reduce","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.reduce.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/object.reduce/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"for-own":"^0.1.2"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"keywords":["accumulate","accumulator","callback","cb","find","for-in","for-own","has","has-own","hasOwn","index","iterate","iterator","javascript","js","key","keys","loop","node.js","object","own","prop","properties","property","reduce","util","utilities","utility","utils","value"],"_id":"object.reduce@0.1.3","_shasum":"996b5d9fd3ee07e9313774ae2feebbf8095f7273","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"996b5d9fd3ee07e9313774ae2feebbf8095f7273","size":3258,"noattachment":false,"key":"/object.reduce/-/object.reduce-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.reduce/download/object.reduce-0.1.3.tgz"},"directories":{},"publish_time":1412709467598,"_cnpm_publish_time":1412709467598,"_hasShrinkwrap":false}},"readme":"# object.reduce [![NPM version](https://img.shields.io/npm/v/object.reduce.svg?style=flat)](https://www.npmjs.com/package/object.reduce) [![NPM monthly downloads](https://img.shields.io/npm/dm/object.reduce.svg?style=flat)](https://npmjs.org/package/object.reduce) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/object.reduce.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/object.reduce)\n\n> Reduces an object to a value that is the accumulated result of running each property in the object through a callback.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save object.reduce\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add object.reduce\n```\n\nInstall with [bower](https://bower.io/)\n\n```sh\n$ bower install object.reduce --save\n```\n\n## Usage\n\nthe initial value (or value from the previous callback call), the `value` of the current property, the `key` of the current property, and the `object` over which the function is iterating. Node.js/JavaScript utility.)_\n\n**Params**\n\n* `object` **{Object}**: The object to iterate over (the iteratee)\n* `fn` **{Function}**: The function invoked per iteration.\n* `init` **{Object}**: The initial value to use for the accumulator.\n* `thisArg` **{Object}**: (optional) Object to use as the invocation context for the iterator (expose as `this` inside the iterator)\n\nExecutes the given callback `fn` once for each own enumerable property in the object. The callback receives the following arguments:\n\n* `acc`: the initial value (or value from the previous callback call),\n* `value`: the of the current property,\n* `key`: the of the current property, and\n* the original `object` over which the function is iterating.\n\n**Example**\n\n```js\nvar reduce = require('object.reduce');\nvar a = {a: 'foo', b: 'bar', c: 'baz'};\n\nreduce(a, function(acc, value, key, obj) {\n  acc[key] = value.toUpperCase();\n  return acc;\n}, {});\n\n//=> {a: 'FOO', b: 'BAR', c: 'BAZ'};\n```\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 17, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/object.reduce","bugs":{"url":"https://github.com/jonschlinkert/object.reduce/issues"},"license":"MIT"}