Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-error/docs/types/index.d"

Index

Functions

Functions

Export assignment isError

  • isError(value: any): boolean
  • Tests if a value is an Error object.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is an Error object

    Example

    var bool = isError( new Error( 'beep' ) );
    // returns true

    Example

    var bool = isError( {} );
    // returns false