@wopjs/cast - v0.1.6
Preparing search index...
toNonEmptyArray
Function toNonEmptyArray
toNonEmptyArray
<
T
>
(
x
:
T
)
:
ExtractArray
<
T
>
|
undefined
Returns
x
if
x
is an array and has at least one element, otherwise returns
undefined
.
Type Parameters
T
Parameters
x
:
T
Returns
ExtractArray
<
T
>
|
undefined
Settings
Theme
OS
Light
Dark
@wopjs/cast - v0.1.6
Loading...
Returns
xifxis an array and has at least one element, otherwise returnsundefined.