lua-style-arrays
v0.1.0
Published
Create Lua-style arrays that start at one.
Downloads
1
Readme
lua-style-arrays
A small NPM module with zero dependencies to make Lua-style arrays that start at one.
Usage
var convertToLuaStyle = require('lua-style-arrays');
var luaStyleArray = convertToLuaStyle(['this is', 'a lua-style array']);
console.log(luaStyleArray[1]);
// this is
console.log(luaStyleArray[0]);
// undefined