Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
variable allEqual
import { allEqual } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Check if all elements in an array are equal.

type

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