1.0.1 • Published 2 years ago

@fyleto/onearray v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

oneArray

1 indexed array. This wasn't my idea so don't kill me 😭 I have a slight feeling this may become one of the most controversial packages out there.

Install

npm i @fyleto/oneArray
yarn add @fyleto/oneArray

Use

const oneArray = require("@fyleto/oneArray")

let a = new oneArray("hey", "how are you?", 239)

a.pos(1) // "hey"

a.set(3, 134) // sets element 3 (element 2 if you're a normal javascript user) to 134

I aplogize for my severe mistake but then again, you are commiting to the joke.

1.0.1

2 years ago

1.0.0

2 years ago