is-valid-array
v1.0.8
Published
check whether a value is a non-empty array
Downloads
122
Readme
is-valid-array
check whether a value is a non-empty array.
install
npm install is-valid-array --save
usage
import isValidArray from 'is-valid-array';
isValidArray([]); //false
isValidArray({}); //false
isValidArray(undefined); //false
isValidArray([undefined]); // true
isValidArray([{}]); //true
isValidArray([[]]); //true
isValidArray([0]); //true
isValidArray([1, 2, 3]); //true