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

Returns true if the provided predicate function returns true for all elements in a collection, false otherwise.

type

<T = any>(arr: T[], fn?: (t: T) => boolean) => unknown