# indexes-of

> line String/Array#indexOf but return all the indexes in an array

Latest version **1.0.1** (published 2013-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install indexes-of
pnpm add indexes-of
yarn add indexes-of
bun add indexes-of
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2013-11-17 |
| First published | 2013-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/indexes-of
- Repository: https://github.com/dominictarr/indexes-of
- Issues: https://github.com/dominictarr/indexes-of/issues
- npm.io page: https://npm.io/package/indexes-of

## Recent versions

- 1.0.1 (latest) — 2013-11-17
- 1.0.0 — 2013-11-16

## README

# indexes-of

like Array/String#indexOf but return all the indexes in an array.

``` js
var indexesOf = require('indexes-of')

var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)

console.log(twosIndexes)

// [1, 7]

```

# Haiku

* A 5 line module.
* But the tests are 40 lines.
* npm publish.

## License

MIT

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