@stdlib/assert
Version:
Standard assertion utilities.
29 lines (21 loc) • 502 B
Plain Text
{{alias}}( value )
Tests if a value is an empty array-like object.
If provided a string, the function returns `false`.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether a value is an empty array-like object.
Examples
--------
> var bool = {{alias}}( [] )
true
> bool = {{alias}}( { 'length': 0 } )
true
> bool = {{alias}}( '' )
false
See Also
--------