Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denouse/mod.ts>useUnique

Util functions for Deno
Latest
function useUnique
import { useUnique } from "https://deno.land/x/denouse@v0.0.12/mod.ts";

Remove duplicate values in an array. Uses a strict = for identifying duplicates.

Parameters

arr: ArrayLike<T>

Array to remove duplicates from.

Returns

T[]

Array with only unique elements.