Variable
The Variable is an extension of the Tag string object and represents an immutable variable in the form of name between curly brackets e.g. {fix} with the ability to set its value.
Instance accessors
Static methods
Variable.
Description
The static method checks whether the value of any type is an instance of a Variable.
Instance methods
Variable.prototype.
Description
Replaces variable in the format {variable name} with the value of a specified Variable object or with a provided replaceValue, in a given text.
Returns converted variable to a read-only array where the first element is the name, and the second is the value if set, otherwise undefined.
Returns converted variable to a read-only object where the key is the variable name.
Returns the variable in form {name}, a primitive value of the specified Variable object.
Last updated