On second thought, might be cleaner to use a filter.

```javascript
var arr = alias.filter(function (item) {
    return item.key && item.module;
});
```