Skip to main content
Version: latest - a1.73.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
Dumps a table into a readable text
Performs a shallow copy of a table

Dump

Dumps a table into a readable text

β€” Returns (the table as readable text).

local ret = NanosTable.Dump(table)
TypeParameterDefaultDescription
table 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 (the copied table).

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