Skip to content

includesAll

Array.includesAll(array, values)

Returns true if array contains all values, otherwise returns false. Supports iterables for the values parameter.

Example

ts
import { Array } from "@monstermann/array";

Array.includesAll([1, 2, 3, 4], [2, 3]); // true
ts
import { Array } from "@monstermann/array";

pipe([1, 2, 3, 4], Array.includesAll([2, 3])); // true