`splice()` mutates an array, which means that this is modifying someone else's object. This should be changed to `slice()`.