title: Search a JavaScript object
body: <p>I have a JavaScript object like this:</p>
  
  <pre><code>[{
      name : "soccer",
      elems : [
          {name : "FC Barcelona"},
          {name : "Liverpool FC"}
      ]
  },
  {
      name : "basketball",
      elems : [
          {name : "Dallas Mavericks"}
      ]
  }]
  </code></pre>
  
  <p>Now I want to search on this JavaScript object in the browser. The search for "FC" should give me something like this:</p>
  
  <pre><code>[
      {name : "FC Barcelona"},
      {name : "Liverpool FC"}
  ]
  </code></pre>
  
  <p>How to do this fast? Are there any JavaScript libs for this? </p>