code: function createFilterFor(query) {
        var lowercaseQuery = query.toLowerCase();
  
        return function filterFn(vegetable) {
          return (vegetable._lowername.indexOf(lowercaseQuery) === 0) ||
              (vegetable._lowertype.indexOf(lowercaseQuery) === 0);
        };
  
      }
docs: Create filter function for a query string