Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 593 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 593 Bytes

lua-style-arrays CircleCI

NPM

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