I am trying to remove a element from my array using slice, but i can\'t get it to work, look at this piece of code.
console.log(this.activeEffects); // P
This is what I was able to come up with :
var newArray = oldArray.slice(indexOfElementToRemove+1).concat(oldArray.slice(0,indexOfElementToRemove));