Reece
615bcb53b9
Publish a collection of boilerplate and an additional json parser. This meta build chain as-is should replace a lot of the premake5.lua in the AuroraEngine repo
12 lines
213 B
Lua
12 lines
213 B
Lua
function forEach(xd, cb, ...)
|
|
if (not xd) then
|
|
return
|
|
end
|
|
if type(xd) == "table" then
|
|
for k, v in pairs(xd) do
|
|
cb(v, ...)
|
|
end
|
|
else
|
|
cb(xd)
|
|
end
|
|
end |