The Variable is an extension of the Tag string object that represents an immutable variable in the form {variable name} with the ability to set its value.
Instance accessors
Variables.prototype.
Description
variable
The get accessor gets an object of set variables where the key is the variable name.
variables
The get accessor gets an array of set variables.
Instance methods
Variables.prototype.
Description
delete()
Removes the variable under the given name from the Variables storage.
forEach()
The method executes a provided forEach function once per each Variable in the Variables object.
get()
The method gets the variable of a specified name.
getAll()
Gets an array of set variables.
getVariables()
Gets an array of set variables.
has()
Checks whether the variable under the given name exists.
set()
Defines a new variable under the given name, with an optional value.