# @extra-array/has-value.min

> Checks if array has a value.

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

## Install

```sh
npm install @extra-array/has-value.min
pnpm add @extra-array/has-value.min
yarn add @extra-array/has-value.min
bun add @extra-array/has-value.min
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned.

## Facts

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

## Links

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## 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
- … 3 more at https://npm.io/package/@extra-array/has-value.min/versions

## README

Checks if array has a value.
[:package:](https://www.npmjs.com/package/@extra-array/has-value)
[:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
[:running:](https://npm.runkit.com/@extra-array/has-value)
[:vhs:](https://asciinema.org/a/343744)
[:moon:](https://www.npmjs.com/package/@extra-array/has-value.min)
[:scroll:](https://unpkg.com/@extra-array/has-value/)
[:newspaper:](https://nodef.github.io/extra-array/)
[:blue_book:](https://github.com/nodef/extra-array/wiki/)

> Similar: [value], [values], [hasValue], [searchValue].<br>
> Similar: [hasValue], [hasPrefix], [hasInfix], [hasSuffix], [hasSubsequence], [hasPermutation], [hasPath].

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

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

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

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

<br>

```javascript
array.hasValue(x, v, [fc], [fm]);
// x:  an array
// v:  value?
// fc: compare function (a, b)
// fm: map function (v, i, x)
```

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

var x = [1, 2, -3];
array.hasValue(x, 3);
// false

array.hasValue(x, 3, (a, b) => Math.abs(a) - Math.abs(b));
// true

array.hasValue(x, 3, null, v => Math.abs(v));
// true
```

<br>
<br>


## References

- [Array.prototype.includes: MDN web docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes)
- [array-tools.contains: @75lb](https://www.npmjs.com/package/array-tools)

[value]: https://github.com/nodef/extra-array/wiki/value
[values]: https://github.com/nodef/extra-array/wiki/values
[hasValue]: https://github.com/nodef/extra-array/wiki/hasValue
[searchValue]: https://github.com/nodef/extra-array/wiki/searchValue
[hasPrefix]: https://github.com/nodef/extra-array/wiki/hasPrefix
[hasInfix]: https://github.com/nodef/extra-array/wiki/hasInfix
[hasSuffix]: https://github.com/nodef/extra-array/wiki/hasSuffix
[hasSubsequence]: https://github.com/nodef/extra-array/wiki/hasSubsequence
[hasPermutation]: https://github.com/nodef/extra-array/wiki/hasPermutation
[hasPath]: https://github.com/nodef/extra-array/wiki/hasPath

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