is-array-in-array
Checks if an array is in an array.
Node Repository
https://www.npmjs.com/package/@pelevesque/is-array-in-array
Installation
npm install @pelevesque/is-array-in-array
Tests
Command | Description |
---|---|
npm test or npm run test
|
All Tests Below |
npm run cover |
Standard Style |
npm run standard |
Coverage |
npm run unit |
Unit Tests |
Usage
const isArrayInArray = require('@pelevesque/is-array-in-array')
const arr = [1, 1]
const arrToCheckIn = [[1, 0], [1, 1], [1, 2]]
const result = isArrayInArray(arr, arrToCheckIn)
// result === true