function forEach(xd, cb, ...)
if (not xd) then
return
end
if type(xd) == "table" then
for k, v in pairs(xd) do
cb(v, ...)
else
cb(xd, ...)