https://github.com/lewisakura/lua-style-arrays
A small NPM module to make Lua-style arrays that start at one.
https://github.com/lewisakura/lua-style-arrays
array arrays at lua-style nodejs one starts that
Last synced: 29 days ago
JSON representation
A small NPM module to make Lua-style arrays that start at one.
- Host: GitHub
- URL: https://github.com/lewisakura/lua-style-arrays
- Owner: lewisakura
- License: unlicense
- Created: 2018-03-29T16:30:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T19:30:33.000Z (over 7 years ago)
- Last Synced: 2024-05-01T18:34:33.066Z (over 1 year ago)
- Topics: array, arrays, at, lua-style, nodejs, one, starts, that
- Language: JavaScript
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# lua-style-arrays [](https://circleci.com/gh/LewisTehMinerz/lua-style-arrays)
[](https://nodei.co/npm/lua-style-arrays/)A small NPM module with zero dependencies to make Lua-style arrays that start at one.
# Usage
```javascript
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
```