Function isError

  • Returns whether the payload is an Error

    Parameters

    • payload: unknown

    Returns payload is Error