ponyfill-array

0.1.0 • Public • Published

ponyfill-array

Build Status

ES6 Array ponyfills

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install ponyfill-array --save

Usage

[4, 6, 7, 12].find(isPrime);
//=> 7
[4, 6, 7, 12].findIndex(isPrime);
//=> 2
[4, 6, 7, 12].reduce(function(a, b) {
  return a + b;
}, 1);
//=> 30

License

MIT © Colin Milhench

Package Sidebar

Install

npm i ponyfill-array

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • cmilhench