@wopjs/cast - v0.1.3
Preparing search index...
toTruthy
Function toTruthy
toTruthy
<
T
>
(
x
:
T
)
:
Exclude
<
T
,
Falsy
>
|
undefined
Returns
x
if
Boolean(x)
is
true
, otherwise returns
undefined
.
Type Parameters
T
Parameters
x
:
T
Returns
Exclude
<
T
,
Falsy
>
|
undefined
Settings
Theme
OS
Light
Dark
@wopjs/cast - v0.1.3
Loading...
Returns
xifBoolean(x)istrue, otherwise returnsundefined.