title: How to check if object property exists with a variable holding the property name?
body: <p>I am checking for the existence of an object property with a variable holding the property name in question. </p>
  
  <pre><code>var myObj;
  myObj.prop = "exists";
  var myProp = "p"+"r"+"o"+"p";
  
  if(myObj.myProp){
      alert("yes, i have that property");
  };
  </code></pre>
  
  <p>This is <code>undefined</code> because it's looking for <code>myObj.myProp</code> but I want it to check for <code>myObj.prop</code></p>