Posted By

tennison on 03/08/10


Tagged

object property in


Versions (?)

if(property in object)


 / Published in: JavaScript
 

  1. var x = ("foo" in myObject)? myObject[foo] : false;
  2.  
  3. for(keyName in myObject){}

Report this snippet  

You need to login to post a comment.