isNonEmptyArray
Checks if an array has one or more elements.
Example
isNonEmptyArray([]); // false
isNonEmptyArray(['hi']); // true
isNonEmptyArray(['hi', 'hello']); // true
Checks if an array has one or more elements.
isNonEmptyArray([]); // false
isNonEmptyArray(['hi']); // true
isNonEmptyArray(['hi', 'hello']); // true