Created
          May 14, 2019 18:20 
        
      - 
      
- 
        Save stomg7969/6e9d091f5b3c0b75bf35bd5fd3bbff6c to your computer and use it in GitHub Desktop. 
    FILTER BLOG - final filter
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // **************** SEARCH Filter **************** | |
| searchProducts = () => { | |
| const filteredProducts = this.multiPropsFilter( | |
| this.props.products, | |
| this.filteredCollected() | |
| ); | |
| return filteredProducts.filter(product => { | |
| return product.name | |
| .toLowerCase() | |
| .includes(this.state.passingTags.search.inputTerm); | |
| }); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment