includes-many
v1.0.11 includes many includes-many many-includes includes-many
includesMany
Return false when one or more of the given values not include in the array, else return true
Usage: includesMany<T>(collection: ArrayLike<T>, ...targets: Array<T>): boolean
import { includesMany } from 'includes-many'
includesMany([`value1`], `value1`, `value2`)
// Output: false
includesMany([`value1`, `value2`], `value1`, `value2`)
// Output: true
This module exported from utilizes project.
npm i [email protected]
Metadata
- MIT
- Whatever
- Natan Farkash
- released 1/15/2019