Most of this function could be reduced to
```js
return inputs.map(function(e) {
    return $(e).val();
}).filter(_.identity);
```