lib/form-query.js
function shouldFilter(filters, anno) {
  for (var i = filters.length - 1; i > -1; i--) {
    var filter = filters[i];
    if (filter.type === anno.type) {
      if (_.isEqual(filter.position, anno.position)) {
        if (anno.isA && anno.isA === 'Date') {
          var filterDate = new Date(filter.value), fieldDate = new Date(anno.typed.Date);
          if (filter.operator === '<') {
            return fieldDate < filterDate;
          } else if (filter.operator === '>') {
            return fieldDate > filterDate;
          } else {
            return filterDate === fieldDate;
          }
        }
      } else {
        return filter.value == anno.value;
      }
    }
  }
  return false;
}
function shouldFilter(filters, anno) {
  for (var i = filters.length - 1; i > -1; i--) {
    var filter = filters[i];
    if (filter.type === anno.type) {
      if (_.isEqual(filter.position, anno.position)) {
        if (anno.isA && anno.isA === 'Date') {
          var filterDate = new Date(filter.value), fieldDate = new Date(anno.typed.Date);
          if (filter.operator === '<') {
            return fieldDate < filterDate;
          } else if (filter.operator === '>') {
            return fieldDate > filterDate;
          } else {
            return filterDate === fieldDate;
          }
        }
      } else {
        return filter.value == anno.value;
      }
    }
  }
  return false;
}
function shouldFilter ( filters , anno ) { for ( var i = filters . length - 1 ; i > - 1 ; i -- ) { var filter = filters [ i ] ; if ( filter . type === anno . type ) { if ( _ . isEqual ( filter . position , anno . position ) ) { if ( anno . isA && anno . isA === 'Date' ) { var filterDate = new Date ( filter . value ) , fieldDate = new Date ( anno . typed . Date ) ; if ( filter . operator === '<' ) { return fieldDate < filterDate ; } else if ( filter . operator === '>' ) { return fieldDate > filterDate ; } else { return filterDate === fieldDate ; } } } else { return filter . value == anno . value ; } } } return false ; }
Return true if this field should be filtered out
Return true if this field should be filtered out