table.IsEmpty
Description
Returns whether or not the given table is empty.
This works on both sequential and non-sequential tables, and is a lot faster for non-sequential tables than table.Count(tbl) == 0
.
If you want to check if a table is not empty, use next(tbl) ~= nil
, as it is slightly faster.
For sequential tables it is better to use tab[1] ~= nil
.
Arguments
Returns
Page views: 14,512
Updated: This Month
Updated: This Month