includesAny
ts
function Array.includesAny<T>(
target: readonly T[],
values: Iterable<NoInfer<T>>,
): booleanReturns true if array contains any of the values, otherwise returns false. Supports iterables for the values parameter.
Example
ts
import { Array } from "@monstermann/array";
Array.includesAny([1, 2, 3, 4], [5, 6, 2]); // truets
import { Array } from "@monstermann/array";
pipe([1, 2, 3, 4], Array.includesAny([5, 6, 2])); // true