uniqWith (Functional Programming) es-toolkit
Creates a function that removes duplicates using a custom equality function. Use it with pipe.
Info
Usage
uniqWith keeps the first value that does not match a previously kept value according to areItemsEqual. It is lazy-capable inside pipe.
Parameters
areItemsEqual(item: T, other: T) => booleanrequired
The function that decides whether two values are equal.
Returns
A function that maps a readonly T[] to a duplicate-free array by custom equality.
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.