@fyleto/onearray

1.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @fyleto/onearray

      Weekly Downloads

      0

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      2.35 kB

      Total Files

      4

      Last publish

      Collaborators

      • yetnt