code: function filterBy(array, prop) {
          if (!array || !prop) {
              if(DEBUG) $log.error('filterBy: missing array or property');
              return;
          }
          return $filter('filter')(array, function (item) {
            return item[prop];
          });
        }
docs: Filter By: returns an array of routes based on a property option