• Returns true if the given error represents a cancellation error. This is the case if it is either an instance of Cancel or a plain error with name AbortError.

    Parameters

    • error: any

    Returns boolean