BigArray in code

This commit is contained in:
Jordi Baylina
2020-07-30 05:04:15 +02:00
parent 0e1a1bcc23
commit 1e2fb12631
4 changed files with 15 additions and 9 deletions

View File

@@ -26,8 +26,10 @@ class _BigArray {
}
return this;
}
push (element) {
this.setElement (this.length, element);
push () {
for (let i=0; i<arguments.length; i++) {
this.setElement (this.length, arguments[i]);
}
}
getElement(idx) {
idx = parseInt(idx);