For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Variable.prototype.
Description

The get accessor returns the value from a private #value property of a specified Variable object.

The get accessor returns the variable in form {variable name}, a primitive value of the specified Variable object.

Static methods

Variable.
Description

The static method defines the Variable of a specified name with an optional value.

The static method checks whether the value of any type is an instance of a Variable.

Instance methods

Variable.prototype.
Description

Gets the value of the variable by returning the private #value property of a specified Variable object.

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.

Returns the variable in form {name}, a primitive value of the specified Variable object.

Last updated