Lua bagaimana mendapatkan indeks tabel bersarang

function findTL(tbl)
    for key, data in pairs(tbl) do
       if data.tl == tlSearch then 
          return key
       end
    end
end

local key = findTL(objects, 22)
Jittery Jaguar