♾️ array.ts

This commit is contained in:
nirholas
2026-03-31 10:24:09 +00:00
parent 8bdc687493
commit 3c9046755b

View File

@@ -11,3 +11,4 @@ export function count<T>(arr: readonly T[], pred: (x: T) => unknown): number {
export function uniq<T>(xs: Iterable<T>): T[] { export function uniq<T>(xs: Iterable<T>): T[] {
return [...new Set(xs)] return [...new Set(xs)]
} }