value to test
property to test
boolean indicating if an object property has an accessor descriptor
var defineProperty = require( `@stdlib/utils/define-property` );
var obj = {
'boop': true
};
function getter() {
return 'beep';
}
defineProperty( obj, 'beep', {
'configurable': false,
'enumerable': false,
'get': getter
});
var bool = isAccessorProperty( obj, 'boop' );
// returns false
bool = isAccessorProperty( obj, 'beep' );
// returns true
Tests if an object's own property has an accessor descriptor.