Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isError

  • isError(val: unknown): boolean
  • Checks if the given value is an error object.

    example

    isError(new Error()); // true isError('not error'); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is an error object.

Legend

  • Function

Generated using TypeDoc