(Anonymous)

True if the value is a Failure instance.

Deprecated since 2.0.0

The .isFailure field is deprecated in favour of the new Failure.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 Failure 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/)