table.GetKeys

From Garry's Mod
Jump to: navigation, search
 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