Is there a convenient method in Angular to utilize the $filter service for retrieving an array containing only a specific property from an array of objects?
var contacts = [
{
name: 'John',
id: 42
},
{
name: 'Mary',
id: 43
},
];
var ids = $filter('filter')(contacts, /* my magical parameter */);
console.log(ids); //output [42, 43]
Any assistance or direction towards a related resource would be greatly appreciated. Thank you.