Revision Difference
table.GetKeys#560390
<function name="GetKeys" parent="table" type="libraryfunc">
<description>Returns all keys of a table.</description>
<realm>Shared and Menu</realm>
<file line="730-L742">lua/includes/extensions/table.lua</file>
<file line="752-L764">lua/includes/extensions/table.lua</file>
<args>
<arg name="tabl" type="table">The table to get keys of</arg>
</args>
<rets>
<ret name="" type="table">Table of keys</ret>
</rets>
</function>
<example>
<description>Example usage</description>
<code>
local tabl = {
one = "A",
two = "B",
}
PrintTable( table.GetKeys( tabl ) )
</code>
<output>
```
1 = one
2 = two
```
</output>
</example>