title: javascript filter by values
body: <p>Given an object of form listed below, what is best way to obtain keys that contain a particular value? For example in following structure, if we want all the objects that possess property1, we should get object1 and object2 as answer.
  Or can this be stored in a specific type of data structure for quick retrieval? 
  Looping over values of all objects in one approach. I am looking for something faster than that. Would appreciate suggestions.  </p>
  
  <pre><code>{
        object1: [property1, property2, property3],
        object2: [property1],
        object3: [property2]
  }
  </code></pre>