client/assets/scripts/services/search.js
function (query, array, exact) {
        if (!_.isArray(array) || array.length === 0) {
          return false;
        }
        return array.some(function (string) {
          if (exact) {
            return query.toLowerCase() === string.toLowerCase();
          }
          return string.toLowerCase().indexOf(query.toLowerCase()) !== -1;
        });
      }
function (query, array, exact) {
        if (!_.isArray(array) || array.length === 0) {
          return false;
        }
        return array.some(function (string) {
          if (exact) {
            return query.toLowerCase() === string.toLowerCase();
          }
          return string.toLowerCase().indexOf(query.toLowerCase()) !== -1;
        });
      }
function ( query , array , exact ) { if ( ! _ . isArray ( array ) || array . length === 0 ) { return false ; } return array . some ( function ( string ) { if ( exact ) { return query . toLowerCase ( ) === string . toLowerCase ( ) ; } return string . toLowerCase ( ) . indexOf ( query . toLowerCase ( ) ) !== - 1 ; } ) ; }
Search in array field
Search in array field