# @extra-array/indices-of

> Get indices of all values in array equal to specified value, like Array.indexOf().

Latest version **1.1.7** (published 2019-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extra-array/indices-of
pnpm add @extra-array/indices-of
yarn add @extra-array/indices-of
bun add @extra-array/indices-of
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2019-04-02 |
| First published | 2018-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, array, standard, utility, method, manipulation, function, merferry, indices, of |

## Links

- npm: https://www.npmjs.com/package/@extra-array/indices-of
- Repository: https://github.com/nodef/extra-array
- Homepage: https://github.com/nodef/extra-array#readme
- Issues: https://github.com/nodef/extra-array/issues
- npm.io page: https://npm.io/package/@extra-array/indices-of

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.1.7 (latest) — 2019-04-02
- 1.1.6 — 2019-04-02
- 1.1.4 — 2019-03-31
- 1.1.3 — 2019-03-31
- 1.1.2 — 2019-03-30
- 1.1.1 — 2018-12-24
- 1.1.0 — 2018-12-23
- 1.0.6 — 2018-12-23
- 1.0.4 — 2018-12-23
- 1.0.1 — 2018-09-24
- 1.0.0 — 2018-09-24

## README

Get indices of all values in [array] equal to specified value, like [Array.indexOf()].

```javascript
const indicesOf = require('@extra-array/indices-of');
// indicesOf(<array>, <search value>, [begin=0], [end], [target=[]], [at])

indicesOf(['r', 'o', 'b', 'o'], 'o');
// [1, 3]
indicesOf(['r', 'o', 'b', 'o'], 'o', 1);
// [1, 3]
indicesOf(['r', 'o', 'b', 'o'], 'o', 1, 3);
// [1]
indicesOf(['r', 'o', 'b', 'o'], 'o', 1, 3, [10, 11]);
// [10, 11, 1]
indicesOf(['r', 'o', 'b', 'o'], 'o', 1, 3, [10, 11], 1);
// [10, 1]
```
> With [extra-array] try `Array.indicesOf()` instead.
<br>


[![extra-array](https://i.imgur.com/nwyrmkW.jpg)](https://www.npmjs.com/package/extra-array)

[extra-array]: https://www.npmjs.com/package/extra-array
[array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Indexed_collections
[Array.indexOf()]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf

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