array-reduce-right
Array#reduceRight ponyfill for older browsers
Ponyfill: A polyfill that doesn't overwrite the native method
DESCRIPTION
Provides reduceRight
function for older browsers, use native implememtation if exists.
It's just like
EXAMPLE
var total = ;assert; var flattened = ;assert;
INSTALL
via npm
Install
$ npm install --save array-reduce-right
Use
var reduceRight = require('array-reduce-right');
use array-reduce-right npm module on browser
reduceRight
function is exported
<script type="text/javascript" src="./path/to/node_modules/array-reduce-right/build/array-reduce-right.js"></script>
via bower
Install
$ bower install --save array-reduce-right
Load (reduceRight
function is exported)
<script type="text/javascript" src="./path/to/bower_components/array-reduce-right/build/array-reduce-right.js"></script>
Use
var total = reduceRight([3, 2, 24], function (a, b) {
return a / b;
});
AUTHOR
LICENSE
Licensed under the MIT license.