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
.slice does not mutate the array, you could use .splice() to remove the item at index i in the array:
.slice
.splice()
i
this.activeEffects.splice(i, 1)