ponyfill-array-reduce
1.0.0 • Public • Published ponyfill-array-reduce
ES6 Array.reduce()
ponyfill
Ponyfill: A polyfill that doesn't overwrite the native method
Install
$ npm install ponyfill-array-reduce --save
Usage
var reduce = require('ponyfill-array-reduce');
[4, 6, 7, 12].reduce(function(a, b) {
return a + b;
});
var reduce = require('ponyfill-array-reduce');
[[4, 6], [7, 12]].reduce(function(a, b) {
return a.concat(b);
});
License
MIT © Colin Milhench
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Version History
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Package Sidebar
Install
npm i ponyfill-array-reduce
Weekly Downloads