My obejct array is this
var items = {};
$http({
    url: 'http://service.com/api/notifications',
    method: 'GET',
    params: {},
    headers: {}
}).then(function (response) {
    for (var i = 0; i < response.data.length; i++) {
        item[response.data[i].id] = response.data[i];
    }
});
Result is similar to this:
{
  120: {
    "id": 120,
    "name": "John Doe",
    "rol": "admin"
  },
  300: {
    "id": 120,
    "name": "Saya",
    "rol": "moderator"
  }
}
I do this so that there are no repeated items when I print them, because the service is re-consulted from time to time.
I need to delete an item from this array.