```javascript
return speedEntries.eq(index < 1 ? speedEntries.length - 1 : index - 1);
```