title: JS search in object values
body: <p>I have an array of homogeneous objects like so;</p>
  
  <pre><code>[
    {
      "foo" : "bar",
      "bar" : "sit"
    },
    {
      "foo" : "lorem",
      "bar" : "ipsum"
    },
    {
      "foo" : "dolor",
      "bar" : "amet"
    }
  ]
  </code></pre>
  
  <p>I'd like to search these objects' values (not keys) with a keyword, and return an array of objects that contain the keyword in any of the values.</p>
  
  <p>So for example, with a keyword <code>r</code>, I would get all the objects ("baR" in object #1, "loRem" in object #2 and "doloR" in object #3). With a keyword <code>lo</code>, I would get objects 2 and 3 ("LOrem" and "doLOr"), with <code>a</code>, I'd get objects 1 and 3, ("bAr" and "Amet"). With the keyword <code>foo</code> however, I would get an empty array, since "foo" is a key, and isn't found in any of the values (unlike "bar")... you get the idea.</p>
  
  <p>How would I go about doing this? Thanks a lot in advance!</p>