-
Notifications
You must be signed in to change notification settings - Fork 24
Value Functions
Rohansi edited this page Dec 22, 2014
·
3 revisions
All values have the following functions defined.
getType(): string
Returns the value's type as a string.
toString(): string
Converts the value to a string. Will use the __string
metamethod if available.
serialize(): string
Serializes the value to a JSON-like string
. Will use the __serialize
metamethod if available.
getPrototype(): any
Returns the prototype for the value.