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