~/forever/addon-api/function/table.getcountinfo
table.getcountinfo
documented function · LuaTableExtensions
table.getcountinfo(table) : numEntries, numPositiveIntegerKeys, maxPositiveIntegerKeyReturns detailed information about the number and distribution of entries in the table.
──ARGUMENTS
- table
- table (The table to inspect.)
──RETURNS
- numEntries
- number (The total number of entries in the table.)
- numPositiveIntegerKeys
- number (The number of entries with positive integral keys.)
- maxPositiveIntegerKey
- number (The largest positive integral key in the table, or zero if no such keys were found.)
──DETAILS
- Secret When Lua Table Has Secret Keys
- true
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.