time-to-botec/squiggle/node_modules/@stdlib/assert/is-function-array/docs/repl.txt

30 lines
553 B
Plaintext
Raw Normal View History

{{alias}}( value )
Tests if a value is an array-like object containing only functions.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is an array-like object containing only
functions.
Examples
--------
> function beep() {};
> function boop() {};
> var bool = {{alias}}( [ beep, boop ] )
true
> bool = {{alias}}( [ {}, beep ] )
false
> bool = {{alias}}( [] )
false
See Also
--------