@stdlib/array
Version:
Arrays.
29 lines (20 loc) • 567 B
Plain Text
{{alias}}( x )
Tests whether all elements in an array are falsy.
The function returns immediately upon encountering a truthy value.
If provided an empty array, the function returns `true`.
Parameters
----------
x: Array|TypedArray|Object
Input array.
Returns
-------
bool: boolean
The function returns `true` if all elements are falsy; otherwise, the
function returns `false`.
Examples
--------
> var x = [ 0, 0, 0, 0 ];
> var out = {{alias}}( x )
true
See Also
--------