HELIXTable
A table containing useful and aux table functions.
🗿Static Class
This is a Static Class. Access it's methods directly with
.
. It's not possible to spawn new instances.Examples​
local table = {
"my_key" = 123,
[2] = "my_value"
}
local dump_text = HELIXTable.Dump(table)
Console.Log(dump_text)
-- Outputs Text
--[[
{
"my_key": 123,
2 = "my_value"
}
--]]
Static Functions​
Returns | Name | Description | |
---|---|---|---|
string | Dump | Dumps a table into a readable text | |
table | ShallowCopy | Performs a shallow copy of a table |
Dump
​
Dumps a table into a readable text
— Returns string (the table as readable text).
local ret = HELIXTable.Dump(table)
Type | Parameter | Default | Description |
---|---|---|---|
table | table | Table to dump |
ShallowCopy
​
Performs a shallow copy of a table
— Returns table (the copied table).
local ret = HELIXTable.ShallowCopy(table)
Type | Parameter | Default | Description |
---|---|---|---|
table | table | The table to shallow copy |