transferum
Preparing search index...
GuardOperator
Class GuardOperator<T>
Validation operator — passes data through if validator returns true, otherwise returns undefined.
Type Parameters
T
Implements
OperatorInterface
<
T
,
T
|
undefined
>
Index
Constructors
constructor
Methods
apply
Constructors
constructor
new
GuardOperator
<
T
>
(
validator
:
(
data
:
T
)
=>
boolean
)
:
GuardOperator
<
T
>
Type Parameters
T
Parameters
validator
:
(
data
:
T
)
=>
boolean
Returns
GuardOperator
<
T
>
Methods
apply
apply
(
data
:
T
)
:
T
|
undefined
Parameters
data
:
T
Returns
T
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
apply
transferum
Loading...
Validation operator — passes data through if validator returns true, otherwise returns undefined.