Preparing search index...
The search index is not available
@dancrumb/fpish
@dancrumb/fpish
asOptional
Function asOptional
as
Optional
<
A
,
R
>
(
f
)
:
(
(
...
args
)
=>
Optional
<
NonNullable
<
R
>
>
)
Take function that returns a value and make that return an Optional
Type Parameters
A
extends
any
[]
R
Parameters
f
:
(
(
...
args
)
=>
R
)
(
...
args
)
:
R
Parameters
Rest
...
args
:
A
Returns
R
Returns
(
(
...
args
)
=>
Optional
<
NonNullable
<
R
>
>
)
(
...
args
)
:
Optional
<
NonNullable
<
R
>
>
Parameters
Rest
...
args
:
A
Returns
Optional
<
NonNullable
<
R
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@dancrumb/fpish
Loading...
Take function that returns a value and make that return an Optional