ponyfill-array

ES6 Array ponyfills

Usage no npm install needed!

<script type="module">
  import ponyfillArray from 'https://cdn.skypack.dev/ponyfill-array';
</script>

README

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