# array-find-index

> ES2015 `Array#findIndex()` ponyfill

Latest version **1.0.2** (published 2016-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-find-index
pnpm add array-find-index
yarn add array-find-index
bun add array-find-index
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-09-30 |
| First published | 2015-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/array-find-index) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | es2015, ponyfill, polyfill, shim, find, index, findindex, array |

## Links

- npm: https://www.npmjs.com/package/array-find-index
- Repository: https://github.com/sindresorhus/array-find-index
- Homepage: https://github.com/sindresorhus/array-find-index#readme
- Issues: https://github.com/sindresorhus/array-find-index/issues
- npm.io page: https://npm.io/package/array-find-index

## Recent versions

- 1.0.2 (latest) — 2016-09-30
- 1.0.1 — 2015-12-29
- 1.0.0 — 2015-12-29

## README

# array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)

> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)


## Install

```
$ npm install --save array-find-index
```


## Usage

```js
const arrayFindIndex = require('array-find-index');

arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1
```


## API

Same as `Array#findIndex()`, but with the input array as the first argument.


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

---
_Source: https://npm.io/package/array-find-index · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
