Lua version of underscore.js