ponyfill-array-findindex

ES6 Array.findIndex() ponyfill

Usage no npm install needed!

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

README

ponyfill-array-findIndex

Build Status

ES6 Array.findIndex() ponyfill

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

Install

$ npm install ponyfill-array-findindex --save

Usage

var findIndex = require('ponyfill-array-findindex');
[4, 6, 7, 12].findIndex(isPrime);
//=> 2

License

MIT © Colin Milhench