Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 532 Bytes

File metadata and controls

24 lines (17 loc) · 532 Bytes

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.