# @writetome51/array-get-indexes-intermediate

> array-handling functions that return indexes of items in the array

Latest version **1.0.5** (published 2018-12-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @writetome51/array-get-indexes-intermediate
pnpm add @writetome51/array-get-indexes-intermediate
yarn add @writetome51/array-get-indexes-intermediate
bun add @writetome51/array-get-indexes-intermediate
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-12-06 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, manipulation, get, index, indexes |

## Links

- npm: https://www.npmjs.com/package/@writetome51/array-get-indexes-intermediate
- Repository: https://github.com/writetome51/array-get-indexes-intermediate
- Homepage: https://github.com/writetome51/array-get-indexes-intermediate#readme
- Issues: https://github.com/writetome51/array-get-indexes-intermediate/issues
- npm.io page: https://npm.io/package/@writetome51/array-get-indexes-intermediate

## Dependencies (4)

- [basic-data-handling](https://npm.io/package/basic-data-handling.md) ~1.0.13
- [@writetome51/arrays-match](https://npm.io/package/@writetome51/arrays-match.md) ~1.0.4
- [error-if-not-primitive-or-array](https://npm.io/package/error-if-not-primitive-or-array.md) ~1.0.1
- [@writetome51/array-get-indexes-basic](https://npm.io/package/@writetome51/array-get-indexes-basic.md) ~1.0.7

## Recent versions

- 1.0.5 (latest) — 2018-12-06
- 1.0.4 — 2018-10-21
- 1.0.3 — 2018-10-18
- 1.0.2 — 2018-10-11
- 1.0.1 — 2018-10-04
- 1.0.0 — 2018-09-27

## README

These are array-handling functions that return indexes of items in the array.


Returns all indexes of value in array:

getIndexesOf(value, array); // value cannot be object.


Self-explanatory:

getLastIndexOf(value, array); // value cannot be object.


This returns all indexes of array items that pass the testFunction: 

getIndexesThatPass(testFunction, array)

testFunction = function(currentValue [, currentIndex [, theArray]]){ ... } // must return boolean.

Example:

let arr = ['a', 'boy', 'is', 'playing', 'in', 'the', 'street'];

let stringsLongerThanThree = getIndexesThatPass((value) => value.length > 3,  arr);

stringsLongerThanThree is now [3, 6]

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