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

x/netsaur/packages/utilities/src/mod.ts>useUnique

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function useUnique
Re-export
import { useUnique } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/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.