Umi — API References - v1.3.0
Preparing search index...
umi
uniqueBy
Function uniqueBy
uniqueBy
<
T
>
(
array
:
T
[]
,
fn
:
(
a
:
T
,
b
:
T
)
=>
boolean
)
:
T
[]
Deduplicates an array by the provided function.
Type Parameters
T
Parameters
array
:
T
[]
fn
:
(
a
:
T
,
b
:
T
)
=>
boolean
Returns
T
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Umi — API References - v1.3.0
Loading...
Deduplicates an array by the provided function.