@wopjs/cast - v0.1.3
Preparing search index...
toNonEmptyArray
Function toNonEmptyArray
toNonEmptyArray
<
T
>
(
x
:
T
[]
)
:
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
T
[]
|
undefined
Settings
Theme
OS
Light
Dark
@wopjs/cast - v0.1.3
Loading...
Returns
xifxis an array and has at least one element, otherwise returnsundefined.