The operator in can be used to test whether an object has a certain property.
in
var person = {} person.name = "buhaiqing" console.debug( "name" in person) // return : true