Skip to content

Welshman Docs / @welshman/lib / uniqBy

Function: uniqBy() ​

uniqBy<T>(f, xs): T[]

Defined in: packages/lib/src/Tools.ts:767

Returns array with elements unique by key function

Type Parameters ​

• T

Parameters ​

f ​

(x) => any

Function to generate key for each element

xs ​

T[]

Input array

Returns ​

T[]

Array with elements unique by key