code: 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;
          });
        }
docs: Search in array field