xdash / uniqBy
Function: uniqBy()
uniqBy<
T
>(arr
,fn
):T
[]
Unique values from an array, based on a comparator function.
Type parameters
• T
Parameters
• arr: T
[]
array to get unique values from
• fn
comparator function
Returns
T
[]
the array with unique values