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

x/netsaur/packages/utilities/src/utils/array/unique.ts>useUnique

Powerful machine learning, accelerated by WebGPU
Go to Latest
function useUnique
import { useUnique } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/utils/array/unique.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.