Garry's Mod Wiki

Revision Difference

table.IsEmpty#528861

<function name="IsEmpty" parent="table" type="libraryfunc"> <description> Returns whether or not the given table is empty. This works on both sequential and non-sequential tables, and is a lot faster to use than `table.Count(tbl) == 0`. </description> <realm>Shared and Menu</realm> <file line="55-L61">lua/includes/extensions/table.lua</file>⤶ <args> <arg name="tab" type="table">Table to check</arg>⤶ <arg name="tab" type="table">Table to check.</arg>⤶ </args> <rets> <ret name="" type="boolean">Is empty</ret>⤶ <ret name="" type="boolean">Is empty?</ret>⤶ </rets> </function>