title: Check if object has a set of properties in javascript
body: <p>Let's say I have an object named <code>a</code>, how could I check that <code>a</code> has a specific list of multiple properties in shorthand, I think it can be done using <strong>in</strong> logical operator,</p>
  
  <p><strong>Something like this:</strong></p>
  
  <pre><code>var a = {prop1:{},prop2:{},prop3:{}};
  if ({1:"prop1",2:"prop2",3:"prop3"} in a)
      console.log("a has these properties:'prop1, prop2 and prop3'");
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>If plain javascript can't help, jQuery will do, but i prefer javascript</p>
  
  <p><strong>EDIT2</strong></p>
  
  <p>Portability is the privilege</p>