lua test array value nil code example Example: lua empty table for k,v in pairs(table) do table.remove(table, k) end