time-to-botec/squiggle/node_modules/@stdlib/assert/is-falsy-array/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

1.6 KiB

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