(Anonymous)

True if the value is a Just instance.

Deprecated since 2.0.0

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