Thanks for catching this.  

Style nits: please expand the anonymous function to three lines instead of putting it all on one line.  Also please add the semicolon at the end.

```javascript
var selectedPromises = _promises.filter(function(/*object*/ _, /*number*/ j) {
  return promiseIndexes.indexOf(j) !== -1;
});
```