scripts/check_site.lua: add table_keys() helper
This commit is contained in:
parent
1a7d93a2b9
commit
85c0bd6f57
@ -70,6 +70,14 @@ local function array_to_string(array)
|
||||
return '[' .. table.concat(array, ', ') .. ']'
|
||||
end
|
||||
|
||||
function table_keys(tbl)
|
||||
local keys = {}
|
||||
for k, _ in pairs(tbl) do
|
||||
keys[#keys + 1] = k
|
||||
end
|
||||
return keys
|
||||
end
|
||||
|
||||
|
||||
local loadpath
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user