(Anonymous)

True if the value is a Error instance.

Deprecated since 2.0.0

The .isError field is deprecated in favour of the new Error.hasInstance(value) method. The .hasInstance() version allow safely testing any value, even non-objects, and also do union instance checking, rather than a simple tag check;

Documentation

True if the value is a Error instance.

Properties

Source Code

Defined in source/adt/union/union.js at line 55, column 42
get [`is${name}`]() {
        warnDeprecation(`.is${name} is deprecated. Use ${name}.hasInstance(value)
instead to check if a value belongs to the ADT variant.`);
        return true;
      }
Stability
deprecated
Licence
MIT
On This Page
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)