Hopefully I can make sense with this. 

`Array.splice` function returns an array containing all removed elements. 

In my code, I'm only removing one element at a time but I need to store that removed item. 

I'm doing this : 

```
let toRem = $(this).closest("li");  

let temp = list.splice(toRem.index(), 1);
compList.push(temp[0]);
compList[compList.length - 1].completed = new Date;

toRem.remove();

```

Adding the temp array seems like such a waste but I can't see another way to do this. I understand if this is such a tiny thing that I shouldn't care about but I want to make this that much better if possible.