value to test
property to test
boolean indicating if an object has a specified property
var beep = {
'boop': true
};
var bool = hasOwnProp( beep, 'boop' );
// returns true
var beep = {
'boop': true
};
var bool = hasOwnProp( beep, 'bap' );
// returns false
Tests if an object has a specified property.