I'm trying to remove an element from my array using a slice, but I can't get it to work, look at this code snippet.
console.log(this.activeEffects); // Prints my array console.log(this.activeEffects.slice(0,1)); // Remove from index 0, and remove one. console.log(this.activeEffects); // Prints array again, this time my element should be gone
The result of this.

So, what comes of this, first the array is intact, as it should be. Then it prints what is sliced ββinto an array. Finally, should the third be empty? or?
source share