Skip to content
Snippets Groups Projects
Unverified Commit 85c0bd6f authored by Martin Weinelt's avatar Martin Weinelt Committed by Matthias Schiffer
Browse files

scripts/check_site.lua: add table_keys() helper

parent 1a7d93a2
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,14 @@ local function array_to_string(array) ...@@ -70,6 +70,14 @@ local function array_to_string(array)
return '[' .. table.concat(array, ', ') .. ']' return '[' .. table.concat(array, ', ') .. ']'
end end
function table_keys(tbl)
local keys = {}
for k, _ in pairs(tbl) do
keys[#keys + 1] = k
end
return keys
end
local loadpath local loadpath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment