title: How to fix "item[key].toLowerCase is not a function"
body: <p>I want to add a search field in my dashboard and I have get api in this api  have array and in the array I have objects so how I can do it in react what logic I should apply on it .</p>
  
  <p>Here is the logic I apply on it but it returns error that</p>
  
  <p>This is error: </p>
  
  <pre><code>item[key].toLowerCase is not a function
  </code></pre>
  
  <p>and this is logic i apply on it :</p>
  
  <pre><code>handleChange = event =&gt; {
      const lowercasedFilter = this.state.SearchResult.toLowerCase();
      this.state.data.bank_accounts.filter(item =&gt; {
      return Object.keys(item).some(key =&gt;
        item[key].toLowerCase().includes(lowercasedFilter)
      );
    });
      this.setState({ SearchResult: event.target.value });
    };
  </code></pre>