Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/validation
unique
Function unique
unique
<
T
>
(
a
:
Validator
<
T
>
,
f
?:
(
value
:
T
)
=>
Primitive
)
:
Validator
<
T
[]
>
Every element must validate and be unique by
f
(default: the validated element itself).
Type Parameters
T
Parameters
a
:
Validator
<
T
>
Optional
f
:
(
value
:
T
)
=>
Primitive
Returns
Validator
<
T
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
Skill
GitHub
Prelude API
Loading...
Every element must validate and be unique by
f(default: the validated element itself).