accessor
accessor
Last modified: 03 January 2025
This type represents a safe way to access maps.
__index
Returns an object by key.
Arguments
Name
Type
Description
key
string
Object key.
Returns
Type
Description
<type>
Object.
Example
__newindex
Sets an object by key.
Arguments
Name
Type
Description
key
string
Object key.
obj
<type>
Object.
Returns
Nothing.
Example
Last updated