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

25 lines
387 B
Plaintext
Raw Normal View History

{{alias}}( value )
Tests if a value is an Error object.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is an Error object.
Examples
--------
> var bool = {{alias}}( new Error( 'beep' ) )
true
> bool = {{alias}}( {} )
false
See Also
--------