is-non-empty-array
0.0.1 • Public • Published is-non-empty-array
Returns true if a passed value is an Array with at least one element.
Install with yarn add is-non-empty-array
.
Usage
import isNonEmptyArray from 'is-non-empty-array';
isNonEmptyArray([1]);
isNonEmptyArray([{}]);
isNonEmptyArray(['hello', 'there', 'folks']);
isNonEmptyArray([undefined]);
isNonEmptyArray(1);
isNonEmptyArray(null);
isNonEmptyArray(undefined);
isNonEmptyArray('hello, world!');
isNonEmptyArray([]);
Package Sidebar
Install
Weekly Downloads