# array-findindex

> ## Usage

Latest version **0.1.0** (published 2014-03-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install array-findindex
pnpm add array-findindex
yarn add array-findindex
bun add array-findindex
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-03-12 |
| First published | 2014-03-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Stefan Duberg |
| Maintainers | dubban |
| Keywords | array, findindex |

## Links

- npm: https://www.npmjs.com/package/array-findindex
- Repository: https://github.com/stefanduberg/array-findindex
- Issues: https://github.com/stefanduberg/array-findindex/issues
- npm.io page: https://npm.io/package/array-findindex

## Recent versions

- 0.1.0 (latest) — 2014-03-12

## README

# array-findindex

## Usage

```javascript
var findIndex = require('array-findindex');
var array = ['a', 'b', 'c', 'd'];

findIndex(array, function (element, index, arr) {
  return element === 'c';
});
// => 2


findIndex(array, function (element, index, arr) {
  return element === 'z';
});
// => -1

```
Optionally pass in an object as third argument to use as ``this`` when executing callback. 

## Install

```bash
$ npm install array-findindex
```

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