brepjs API Reference
GitHub
npm
Getting Started
Preparing search index...
index
orElse
Function orElse
orElse
<
T
,
E
,
F
>
(
result
:
Result
<
T
,
E
>
,
fn
:
(
error
:
E
)
=>
Result
<
T
,
F
>
,
)
:
Result
<
T
,
F
>
Return
result
if Ok, otherwise call
fn
with the error and return its result.
Type Parameters
T
E
F
Parameters
result
:
Result
<
T
,
E
>
fn
:
(
error
:
E
)
=>
Result
<
T
,
F
>
Returns
Result
<
T
,
F
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
Getting Started
brepjs API Reference
Loading...
Return
resultif Ok, otherwise callfnwith the error and return its result.