webshrine / stdlib/src / dedupeBy
Function: dedupeBy()
dedupeBy<
T
>(collection
,matcher
):AnyArray
|Partial
<T
>
Returns a new collection without duplicated items/values, but using a custom matcher function.
Type Parameters
• T extends Collection
Parameters
collection
T
matcher
FnMatch
<T
[number
] | T
[keyof T
]>
Returns
AnyArray
| Partial
<T
>