title: React filtering cards
body: <p>I built an app calling an API. Now trying to build the search bar but the filtering doesn't seem to work and I'm not sure what's wrong inside the filter function...</p>
  <p>Here's the render:</p>
  <pre><code>render() {
          const { search, allCards } = this.state;
  
          const filterCards = allCards.filter(card =&gt; {
              return card.awardYear.includes(search.toLowerCase) !== -1;
          })
  
          let cards = filterCards.map((card) =&gt; {
              return &lt;WinnerCard
                  key={card.id}
                  awardYear={card.awardYear}
                  category={card.category.en}
                  name={card.laureates[0].knownName?.en}
                  motivation={card.laureates[0].motivation?.en}
              /&gt;
          });
  </code></pre>
  <p>And the return:</p>
  <pre><code>return (
              &lt;div&gt;
                  &lt;div&gt;
                          &lt;Form.Control
                              type=&quot;text&quot;
                              placeholder=&quot;&quot;
                              className=&quot;col-4 font-weight-bold border-dark&quot;
                              value={this.state.search}
                              onChange={this.onChange}
                          /&gt;
                      &lt;/Form&gt;
                  &lt;/div&gt;
                  &lt;div&gt;
                      {cards}
                  &lt;/div&gt;
              &lt;/div&gt;
          )
  </code></pre>
  <p>Any help is welcome!</p>