Basic JavaScript-like array functions for Lua.