# @extra-array/scan-until.min

> Scans from left, until a test passes.

Latest version **2.10.19** (published 2022-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extra-array/scan-until.min
pnpm add @extra-array/scan-until.min
yarn add @extra-array/scan-until.min
bun add @extra-array/scan-until.min
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.10.19 |
| Published | 2022-02-19 |
| First published | 2020-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, array, scan, until, scanUntil |

## Links

- npm: https://www.npmjs.com/package/@extra-array/scan-until.min
- 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/scan-until.min

## Recent versions

- 2.10.19 (latest) — 2022-02-19
- 2.10.18 — 2021-04-13
- 2.10.17 — 2021-02-05
- 2.10.16 — 2021-02-03
- 2.10.15 — 2021-02-03
- 2.10.14 — 2021-02-02
- 2.10.13 — 2021-02-02
- 2.10.12 — 2021-02-02
- 2.10.11 — 2021-02-02
- 2.10.10 — 2021-02-02
- 2.10.9 — 2020-12-16
- 2.10.8 — 2020-09-14
- 2.10.7 — 2020-06-29
- 2.10.6 — 2020-06-28
- 2.10.5 — 2020-06-28
- … 27 more at https://npm.io/package/@extra-array/scan-until.min/versions

## README

Scans from left, until a test passes.
[:package:](https://www.npmjs.com/package/@extra-array/scan-until)
[:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
[:running:](https://npm.runkit.com/@extra-array/scan-until)
[:vhs:](https://asciinema.org/a/339809)
[:moon:](https://www.npmjs.com/package/@extra-array/scan-until.min)
[:scroll:](https://unpkg.com/@extra-array/scan-until/)
[:newspaper:](https://nodef.github.io/extra-array/)
[:blue_book:](https://github.com/nodef/extra-array/wiki/)

> Alternatives: [scanWhile], [scanWhileRight], [scanUntil], [scanUntilRight].<br>
> Similar: [search], [scan], [find].

> This is part of package [extra-array].

[extra-array]: https://www.npmjs.com/package/extra-array

> This is browserified, minified version of [@extra-array/scan-until].<br>
> It is exported as global variable **array_scanUntil**.<br>
> CDN: [unpkg], [jsDelivr].

[@extra-array/scan-until]: https://www.npmjs.com/package/@extra-array/scan-until
[unpkg]: https://unpkg.com/@extra-array/scan-until.min
[jsDelivr]: https://cdn.jsdelivr.net/npm/@extra-array/scan-until.min

<br>

```javascript
array.scanUntil(x, ft);
// x:  an array
// ft: test function (v, i, x)
// → index where test passes
```

```javascript
const array = require("extra-array");

var x = [1, 1, 2, 2, 3, 3, 4, 4];
array.scanUntil(x, v => v % 2 === 0);
// 2           ^

array.scanUntil(x, v => v % 3 === 0);
// 4                 ^

array.scanUntil(x, v => v % 6 === 0);
// 8                            ^
```

<br>
<br>


## References

- [List-Extra.elemIndex: elm](https://package.elm-lang.org/packages/elm-community/list-extra/7.1.0/List-Extra#elemIndex)
- [iterable-binsearch: @krisselden](https://www.npmjs.com/package/iterable-binsearch)
- [binarysearch: @soldair](https://www.npmjs.com/package/binarysearch)

[scanWhile]: https://github.com/nodef/extra-array/wiki/scanWhile
[scanWhileRight]: https://github.com/nodef/extra-array/wiki/scanWhileRight
[scanUntil]: https://github.com/nodef/extra-array/wiki/scanUntil
[scanUntilRight]: https://github.com/nodef/extra-array/wiki/scanUntilRight
[search]: https://github.com/nodef/extra-array/wiki/search
[scan]: https://github.com/nodef/extra-array/wiki/scan
[find]: https://github.com/nodef/extra-array/wiki/find

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