table/GetKeys

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added Source Link)
m (Also menu state)
 
Line 3: Line 3:
 
|Parent=table
 
|Parent=table
 
|Description=Returns all keys of a table.
 
|Description=Returns all keys of a table.
|Realm=Shared
+
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
 
|File=lua/includes/extensions/table.lua
 
|File=lua/includes/extensions/table.lua

Latest revision as of 22:53, 30 July 2016

 table.GetKeys( )

Contents

Description

Returns all keys of a table.

Arguments

table tabl

The table to get keys of

Returns

table

Table of keys

Examples

Example

Example usage

local tabl = {
one = "A",
two = "B",
}
PrintTable( table.GetKeys( tabl ) )

Output:

1	=	one
2	=	two
Personal tools
Navigation