UNPKG
@prelude/array
Version:
latest (3.0.0)
3.0.0
2.3.1
2.3.0
2.2.0
2.1.0
2.0.0
1.0.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
Array module.
@prelude/array
/
cjs
/
unique.d.ts
4 lines
(3 loc)
•
175 B
TypeScript
View Raw
1
2
3
4
/**
@returns
unique array. */
declare
const
unique
: <T, R
extends
string
|
number
|
boolean
|
symbol
>
(
values
: T[],
keyOfValue
: (value: T) => R
) =>
T[];
export
default
unique;