In AngularJS, you can filter an array of objects by an object property like this:

```
var filteredItems = $filter('filter')(items, {someObjProp: someValue});

```

My question is, how do i filter without hardcoding the 'someObjProp' - I want this to be a variable like:

```
var filteredItems = $filter('filter')(items, {arr[0].prop: someValue});

```

Thanks!