@stdlib/array
Version:
Arrays.
31 lines (23 loc) • 701 B
Plain Text
{{alias}}( value )
Tests if an array-like object supports the accessor (get/set) protocol.
An accessor array is defined as an array, typed array, or an array-like
object (excluding strings and functions) having `get` and `set` methods for
accessing array elements.
Parameters
----------
value: ArrayLikeObject
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether a value is an accessor array.
Examples
--------
> var bool = {{alias}}( new {{alias:@stdlib/array/complex64}}( 10 ) )
true
> bool = {{alias}}( [] )
false
> bool = {{alias}}( { 'length': 0 } )
false
See Also
--------