Skip to main content

JsonArray

JSON Array, basically a table but more restricted to match JSON arrays

warning

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:

NameTypeDescriptionDefault
indexInteger--
elemAnyType--

Returns:

TypeDescription
nil-

Example:

-- example coming soon

get()

Returns value by specified index

get(index)

Parameters:

NameTypeDescriptionDefault
indexInteger--

Returns:

TypeDescription
AnyType-

Example:

-- example coming soon

add()

Adds specified value to this array

add(elem)

Parameters:

NameTypeDescriptionDefault
elemAnyType--

Returns:

TypeDescription
Boolean-

Example:

-- example coming soon

clear()

Clears this array

clear()

Returns:

TypeDescription
nil-

Example:

-- example coming soon

contains()

Checks if this array contains specified value

contains(elem)

Parameters:

NameTypeDescriptionDefault
elemAnyType--

Returns:

TypeDescription
Boolean-

Example:

-- example coming soon

indexOf()

Returns first index of provided value in this array

indexOf(elem)

Parameters:

NameTypeDescriptionDefault
elemAnyType--

Returns:

TypeDescription
Integer-

Example:

-- example coming soon

insert()

Inserts provided value in this array at specified index

insert(index, elem)

Parameters:

NameTypeDescriptionDefault
indexInteger--
elemAnyType--

Returns:

TypeDescription
nil-

Example:

-- example coming soon

lastIndexOf()

Returns last index of provided value in this array

lastIndexOf(elem)

Parameters:

NameTypeDescriptionDefault
elemAnyType--

Returns:

TypeDescription
Integer-

Example:

-- example coming soon

remove()

Removes specified value from this array

remove(elem)

Parameters:

NameTypeDescriptionDefault
elemAnyType--

Returns:

TypeDescription
Boolean-

Example:

-- example coming soon

removeAt()

Removes value at specified index in this array

removeAt(index)

Parameters:

NameTypeDescriptionDefault
indexInteger--

Returns:

TypeDescription
AnyType-

Example:

-- example coming soon

size()

Returns size of this array

size()

Returns:

TypeDescription
Integer-

Example:

-- example coming soon