Skip to main content
variable includesAll
import { includesAll } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns true if all the elements in values are included in arr, false otherwise.

Use Array.prototype.every() and Array.prototype.includes() to check if all elements of values are included in arr.

type

<T = any>(arr: T[], values: T[]) => unknown