Array.prototype.filter for objects.