I have created a for loop to limit my list to only show last 10 search results but can't seem to shift() index[0] of the object array off so earliest results are deleted and latest results are at the end of the array:

```js
for (let i = 0; i < searchHistory.length; i++) {
  if (searchHistory.length > 10) {
    console.log(searchHistory[i]);
    searchHistory[i].shift();
  }
}

```

The console.log of searchHistory = [Object Array](https://i.stack.imgur.com/2c1bk.png) 

The console.log of searchHistory[i] = [Console Log](https://i.stack.imgur.com/mcWvQ.png)