You could just do:

```js
return list.map(function (curValue, index) {
  return [index, curValue];
})
```
to the same effect.