```javascript
return speedEntries.eq(index >= speedEntries.length - 1 ?  0 : index + 1);
```