{"_id":"array-reduce-right","_rev":"300150","name":"array-reduce-right","description":"Array#reduceRight ponyfill for older browsers","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"twada","email":"takuto.wada@gmail.com"}],"time":{"modified":"2021-06-03T19:04:52.000Z","created":"2015-04-23T06:49:56.488Z","1.0.0":"2015-04-23T06:49:56.488Z"},"users":{},"author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"repository":{"type":"git","url":"git://github.com/twada/array-reduce-right.git"},"versions":{"1.0.0":{"name":"array-reduce-right","description":"Array#reduceRight ponyfill for older browsers","version":"1.0.0","author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"bugs":{"url":"https://github.com/twada/array-reduce-right/issues"},"devDependencies":{"mocha":"~2.2.4"},"files":["README.md","index.js","build/array-reduce-right.js","package.json","test"],"homepage":"https://github.com/twada/array-reduce-right","keywords":["array","browser","es5","ie6","ie7","ie8","polyfill","ponyfill","shim","reduceRight"],"license":{"type":"MIT","url":"http://twada.mit-license.org/"},"main":"index.js","repository":{"type":"git","url":"git://github.com/twada/array-reduce-right.git"},"scripts":{"build":"browserify index.js --standalone reduceRight | dereserve | derequire > ./build/array-reduce-right.js","test":"mocha"},"gitHead":"3a8629f66cc3325cbca4796c7181cfd3b9a656c4","_id":"array-reduce-right@1.0.0","_shasum":"1e0c1a72e06c53b8b9c10e1010b7a9f77453e085","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"twada","email":"takuto.wada@gmail.com"},"maintainers":[{"name":"twada","email":"takuto.wada@gmail.com"}],"dist":{"shasum":"1e0c1a72e06c53b8b9c10e1010b7a9f77453e085","size":2690,"noattachment":false,"key":"/array-reduce-right/-/array-reduce-right-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-reduce-right/download/array-reduce-right-1.0.0.tgz"},"directories":{},"publish_time":1429771796488,"_cnpm_publish_time":1429771796488,"_hasShrinkwrap":false}},"readme":"array-reduce-right\n================================\n\n[![Build Status][travis-image]][travis-url]\n[![NPM package][npm-image]][npm-url]\n[![Bower package][bower-image]][bower-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![License][license-image]][license-url]\n\n\nArray#reduceRight ponyfill for older browsers\n\n> Ponyfill: A polyfill that doesn't overwrite the native method\n\n\nDESCRIPTION\n---------------------------------------\n\nProvides `reduceRight` function for older browsers, use native implememtation if exists.\n\nIt's just like\n\n- [array-foreach](https://www.npmjs.org/package/array-foreach)\n- [array-map](https://www.npmjs.org/package/array-map)\n- [array-filter](https://www.npmjs.org/package/array-filter)\n- [array-some](https://www.npmjs.org/package/array-some)\n- [array-reduce](https://www.npmjs.org/package/array-reduce)\n- [indexof](https://www.npmjs.org/package/indexof)\n- [object-assign](https://www.npmjs.com/package/object-assign)\n\n\nEXAMPLE\n---------------------------------------\n\n```javascript\nvar total = reduceRight([3, 2, 24], function (a, b) {\n    return a / b;\n});\nassert.equal(total, 4);\n\nvar flattened = reduceRight([[0, 1], [2, 3], [4, 5]], function (a, b) {\n    return a.concat(b);\n}, []);\nassert.deepEqual(flattened, [4, 5, 2, 3, 0, 1]);\n```\n\n\nINSTALL\n---------------------------------------\n\n### via npm\n\nInstall\n\n    $ npm install --save array-reduce-right\n\nUse\n\n    var reduceRight = require('array-reduce-right');\n\n\n#### use array-reduce-right npm module on browser\n\n`reduceRight` function is exported\n\n    <script type=\"text/javascript\" src=\"./path/to/node_modules/array-reduce-right/build/array-reduce-right.js\"></script>\n\n\n### via bower\n\nInstall\n\n    $ bower install --save array-reduce-right\n\nLoad (`reduceRight` function is exported)\n\n    <script type=\"text/javascript\" src=\"./path/to/bower_components/array-reduce-right/build/array-reduce-right.js\"></script>\n\nUse\n\n    var total = reduceRight([3, 2, 24], function (a, b) {\n        return a / b;\n    });\n\n\nAUTHOR\n---------------------------------------\n* [Takuto Wada](http://github.com/twada)\n\n\nLICENSE\n---------------------------------------\nLicensed under the [MIT](http://twada.mit-license.org/) license.\n\n[travis-url]: http://travis-ci.org/twada/array-reduce-right\n[travis-image]: https://secure.travis-ci.org/twada/array-reduce-right.svg?branch=master\n\n[npm-url]: https://npmjs.org/package/array-reduce-right\n[npm-image]: https://badge.fury.io/js/array-reduce-right.svg\n\n[bower-url]: http://badge.fury.io/bo/array-reduce-right\n[bower-image]: https://badge.fury.io/bo/array-reduce-right.svg\n\n[depstat-url]: https://gemnasium.com/twada/array-reduce-right\n[depstat-image]: https://gemnasium.com/twada/array-reduce-right.svg\n\n[license-url]: http://twada.mit-license.org/\n[license-image]: http://img.shields.io/badge/license-MIT-brightgreen.svg\n","_attachments":{},"homepage":"https://github.com/twada/array-reduce-right","bugs":{"url":"https://github.com/twada/array-reduce-right/issues"},"license":{"type":"MIT","url":"http://twada.mit-license.org/"}}