# @extra-array/contains

> Check if an array contains another array.

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

## Install

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

## 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.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.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, array, standard, utility, method, manipulation, function, merferry, contains |

## Links

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

## 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.3 — 2018-12-23
- 1.0.1 — 2018-09-24
- 1.0.0 — 2018-09-24

## README

Check if an [array] contains another array.

```javascript
const contains = require('@extra-array/contains');
// contains(<array1>, <array2>, [begin1=0], [end1], [begin2=0], [end2])

var a = ['b', 'l', 'i', 's', 's'];
var b = ['f', 'i', 's', 'h'];
contains(a, b);
// false (bliss ![c] fish)
contains(a, b, 1);
// false (liss ![c] fish)
contains(a, b, 1, 4);
// false (lis ![c] fish)
contains(a, b, 1, 4, 1);
// false (lis ![c] ish)
contains(a, b, 1, 4, 1, 3);
// true (lis [c] is)
```
> With [extra-array] try `Array.contains()` 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

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