Passer au contenu principal
Version: latest - a1.65.x ⚖️

NanosTable

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.
👐Open Source
This library implementation is Open Sourced on GitHub!
🧑‍💻API Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!

🎒 Examples

(NanosTable.Dump) Dumps a table
local table = {
"my_key" = 123,
[2] = "my_value"
}

local dump_text = NanosTable.Dump(table)

Console.Log(dump_text)

-- Outputs Text
--[[
{
"my_key": 123,
2 = "my_value"
}
--]]

🗿 Static Functions

ReturnsNameDescription
stringDumpDumps a table into a readable text
tableShallowCopyPerforms a shallow copy of a table

Dump

Dumps a table into a readable text

— Returns string (the table as readable text).

local ret = NanosTable.Dump(table)
TypeParameterDefaultDescription
tabletable Required parameter Table to dump
NanosTable.Dump Examples
Dumps a table
local table = {
"my_key" = 123,
[2] = "my_value"
}

local dump_text = NanosTable.Dump(table)

Console.Log(dump_text)

-- Outputs Text
--[[
{
"my_key": 123,
2 = "my_value"
}
--]]

ShallowCopy

Performs a shallow copy of a table

— Returns table (the copied table).

local ret = NanosTable.ShallowCopy(table)
TypeParameterDefaultDescription
tabletable Required parameter The table to shallow copy