How can I check if an anonymous object that was created as such:
var myObj = { prop1: \'no\', prop2: function () { return false; } }
What do you mean by an "anonymous object?" myObj is not anonymous since you've assigned an object literal to a variable. You can just test this:
myObj
if (typeof myObj.prop2 === 'function') { // do whatever }