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
I believe you're looking for splice. From W3 Schools:
The splice() method adds/removes items to/from an array, and returns the removed item(s).
Take a look at the example on that page; the use case there is similar to what you want to achieve.
EDIT: Alternative link to MDN, as suggested by Nicosunshine; much more information about the command there.