Skip to content

Commit 7ea191e

Browse files
authored
Update README.md
1 parent c20e330 commit 7ea191e

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
# 1ia
1+
# oneArray
22
1 indexed array. This wasn't my idea so don't kill me 😭
3+
I have a slight feeling this may become one of the most controversial packages out there.
4+
5+
# Install
6+
7+
```sh
8+
npm i oneArray
9+
yarn add oneArray
10+
```
11+
# Use
12+
13+
```js
14+
const oneArray = require("oneArray")
15+
16+
let a = new oneArray("hey", "how are you?", 239)
17+
18+
a.pos(1) // "hey"
19+
20+
a.set(3, 134) // sets element 3 (element 2 if you're a normal javascript user) to 134
21+
```
22+
23+
I'm aplogize for my severe mistake

0 commit comments

Comments
 (0)