1 # array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)
3 > ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)
9 $ npm install --save array-find-index
16 const arrayFindIndex = require('array-find-index');
18 arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
25 Same as `Array#findIndex()`, but with the input array as the first argument.
30 MIT © [Sindre Sorhus](https://sindresorhus.com)