スライスを使用して配列から要素を削除しようとしていますが、機能させることができません。このコードを見てください。
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
この結果はです。
したがって、これから得られるのは、最初は配列全体であるはずです。次に、配列のスライスされたものを出力します。最後に3番目は空にする必要がありますか?また?