Skip to content

Commit

Permalink
fix: return result of map function
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Oct 17, 2021
1 parent 9784133 commit 96dc95c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ table.map = function(t, fn)
for k, v in pairs(t) do
table.insert(res, fn(v, k, t))
end

return res
end

0 comments on commit 96dc95c

Please sign in to comment.