(info) This AI is still in early stages of development.

Define.MISSING

Indicates a global is not present (missing).

 

Notes

A define with state Define.MISSING does not exist.

You can add missing defines using Define() at which point the state will change to Define.ADDED.

Examples

Checking a specific state
// always use strict equality checks
if (Define.stateOf("chat") === Define.MISSING) {
	// chat function does not exist
}
Availability STABLE

Requires:

Contents

Jump to:

Define API

Topics:

  • Define()Add, remove or redefine a property on the global scope, overriding any native property of the same name on the global object...
  • Define API DiagnosticsDiagnostic routines for Define API...
  • Define ScriptsA library of ready made scripts for the Define API...