Maybe a `filter/map` combination would be a bit more easy to read and maintain:

```js
return [].filter.call(input.options, function(option) {
  return !!option.selected;
}).map(function(option) {
  return option.value;
});
```