includes-many

v1.2.2
Return false when one or more of the given values not include in the array, else return true
includes many includes-many many-includes

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.

Metadata

  • MIT
  • Whatever
  • Natan Farkash
  • released 8/6/2019

Downloads

Maintainers