title: filter array in array of objects
body: <p>i have this array:</p>
  
  <pre><code>[
    {
      "title": "fruit",
      "categories": [
        "apple",
        "banana"
      ]
    },
    {
      "title": "city",
      "categories": [
        "Brazil",
        "EUA",
        "China"
      ]
    },
    {
      "title": "name",
      "categories": [
        "Ana"
      ]
    }
  ]
  </code></pre>
  
  <p>i want to filter this by any terms that the users type</p>
  
  <p>i already got this, works only for title, but i want to search by title and category: </p>
  
  <pre class="lang-js prettyprint-override"><code>array.filter(f =&gt; f.title.includes(myString))
  </code></pre>