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
IsFalsy
PlainObject
_
Falsy
asArray
asNumber
asObject
asPlainObject
asString
asTrue
isArray
isBoolean
isDefined
isFalsy
isNonEmptyJSONObject
isNonEmptyPlainObject
isNonEmptyString
isNumber
isObject
isPlainObject
isString
isTrue
isTruthy
noop
print
returnsEmptyString
returnsFalse
returnsNull
returnsTrue
returnsUndefined
toArray
toBoolean
toNonEmptyArray
toNonEmptyJSONObject
toNonEmptyPlainObject
toNonEmptyString
toNumber
toPlainObject
toPlainObjectOf
toPlainObjectOfTrue
toString
toTrue
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
Returns
x
ifx
is an array and has at least one element, otherwise returnsundefined
.