includes-many

Return false when one or more of the given values not include in the array, else return true

Usage no npm install needed!

<script type="module">
  import includesMany from 'https://cdn.skypack.dev/includes-many';
</script>

README

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.