JsonArray
JSON Array, basically a table but more restricted to match JSON arrays
This page is a WIP. It contains all the information in Figura's documentation but we're working on adding more helpful descriptions.
set()
Sets provided value to specified index in this array
set(index, elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index | Integer | - | - |
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
nil | - |
Example:
-- example coming soon
get()
Returns value by specified index
get(index)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index | Integer | - | - |
Returns:
Type | Description |
---|---|
AnyType | - |
Example:
-- example coming soon
add()
Adds specified value to this array
add(elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
Boolean | - |
Example:
-- example coming soon
clear()
Clears this array
clear()
Returns:
Type | Description |
---|---|
nil | - |
Example:
-- example coming soon
contains()
Checks if this array contains specified value
contains(elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
Boolean | - |
Example:
-- example coming soon
indexOf()
Returns first index of provided value in this array
indexOf(elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
Integer | - |
Example:
-- example coming soon
insert()
Inserts provided value in this array at specified index
insert(index, elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index | Integer | - | - |
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
nil | - |
Example:
-- example coming soon
lastIndexOf()
Returns last index of provided value in this array
lastIndexOf(elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
Integer | - |
Example:
-- example coming soon
remove()
Removes specified value from this array
remove(elem)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elem | AnyType | - | - |
Returns:
Type | Description |
---|---|
Boolean | - |
Example:
-- example coming soon
removeAt()
Removes value at specified index in this array
removeAt(index)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index | Integer | - | - |
Returns:
Type | Description |
---|---|
AnyType | - |
Example:
-- example coming soon
size()
Returns size of this array
size()
Returns:
Type | Description |
---|---|
Integer | - |
Example:
-- example coming soon