Skip to content

Commit 4c871ad

Browse files
committed
1ia
1 parent 49a9e1d commit 4c871ad

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class 1ia {
2+
constructor(...arr) {
3+
let arr = [...arr]
4+
}
5+
6+
pos(num) {
7+
this.arr[num - 1]
8+
}
9+
}
10+
11+
module.exports = 1ia

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "1ia",
3+
"version": "1.0.0",
4+
"description": "1 indexed arrays. Don't kill me this wasn't my idea",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/fyleto/1ia.git"
12+
},
13+
"keywords": [
14+
"array"
15+
],
16+
"author": "YetNT",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/fyleto/1ia/issues"
20+
},
21+
"homepage": "https://github.com/fyleto/1ia#readme"
22+
}

0 commit comments

Comments
 (0)