Skip to content

Instantly share code, notes, and snippets.

View Reiqu's full-sized avatar
🏠
Working from home

Adrian Reiqu

🏠
Working from home
View GitHub Profile
@Reiqu
Reiqu / remove.js
Created April 22, 2020 13:18
remove items from array
function remove(index, array) {
let firstPart = array.slice(0, index);
let secondPart = array.slice(index +1);
for (let element = 0; element < secondPart.length; element++) {
firstPart.push(secondPart[element]);
}
return firstPart;
}

Keybase proof

I hereby claim:

  • I am reiqu on github.
  • I am reiqu (https://keybase.io/reiqu) on keybase.
  • I have a public key ASB-ZZkHNAlEhYK-i-DUp1oe5ebmjJ5gS2saW-eqSkNn3Ao

To claim this, I am signing this object: