UNPKG

@stdlib/assert

Version:

Standard assertion utilities.

25 lines (18 loc) 387 B
{{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 --------