`splice` mutates the object in-place - can you use `slice` here instead?