Skip to content

Is Empty

Checks if a given table is empty

luau
local isempty = require("isempty")
local tbl_1 = { "meow", "mrrp" }
local tbl_2 = {}

print(isempty(tbl_1)) -- false
print(isempty(tbl_2)) -- true