@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Function isError

    • Parameters

      • Optionalvalue: any

        An optionally passed value of any type.

      Returns value is AnyError

      whether the passed value matches any error type, hence it is an instance, either of the basic Error type, or of one of the built-in error-type subclasses (SyntaxError, ReferenceError, etc.), or of a custom error-type that extends the basic Error type.