uniq (Functional Programming) es-toolkit
Creates a function that removes duplicate values from an array. Use it with pipe.
Info
Usage
uniq returns a new array containing only unique values, preserving the order of first occurrence. Equality follows SameValueZero (the semantics of Set).
Parameters
This function takes no arguments; call it as uniq().
Returns
A function that maps a readonly T[] to a new, duplicate-free T[].
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.