title: how to search on key down with angular 10?
body: <p>i know its a noob question but i forgot how this syntax works... i have tried few things but it didnt really work... can someone help me out?</p>
  <p>i have this array:</p>
  <pre><code>products = [
  {name: banana},
  {name: apple},
  {name: orange}
  ]
  </code></pre>
  <p>and i have this search input</p>
  <pre><code>&lt;input (keydown)=&quot;filterProducts($event)&quot; placeholder=&quot;Ex. Banana&quot;&gt;
  </code></pre>
  <p>this is my function</p>
  <pre><code>  filterProducts({target: {value}}) {
      this.products.filter(filtered =&gt; {
         const filter = filtered.name.includes(value)
        console.log(filter)
      })
    }
  </code></pre>
  <p>what i am getting in my console log is just true or false but
  i want to get a new array containing only the items that their name starts with the letters of the search input... thanks!</p>
  <p>note: no using pipes</p>