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