How can I check if an anonymous object that was created as such:
var myObj = { 
    prop1: \'no\',
    prop2: function () { return false; }
}
typeof myObj.prop2 === 'function' if the property name is not dynamic/generatedmyObj.hasOwnProperty('prop2') if the property name is dynamic, and only check if it is direct property (not down the prototype chain)'prop2' in myObj if the property name is dynamic, and check down the prototype chain