`Array.splice()` returns the removed items, as opposed to an array without the removed items. The array is modified directly by `splice()`. You'll want to remove the assignment here.