|
||
---|---|---|
.. | ||
docs | ||
lib | ||
package.json | ||
README.md |
isFalsyArray
Test if a value is an array-like object containing only falsy values.
Usage
var isFalsyArray = require( '@stdlib/assert/is-falsy-array' );
isFalsyArray( value )
Tests if a value
is an array-like object
containing only falsy values.
var bool = isFalsyArray( [ '', null, void 0, false, 0, NaN ] );
// returns true
bool = isFalsyArray( [ [], {} ] );
// returns false
Examples
var isFalsyArray = require( '@stdlib/assert/is-falsy-array' );
var bool = isFalsyArray( [ null, '', NaN, 0, void 0, false ] );
// returns true
bool = isFalsyArray( [ [], {}, true, 'a', 5, -5 ] );
// returns false
bool = isFalsyArray( [] );
// returns false
bool = isFalsyArray( false );
// returns false
bool = isFalsyArray( null );
// returns false