value to test
property to test
boolean indicating if an object property is configurable
var defineProperty = require( `@stdlib/utils/define-property` );
var obj = {
'boop': true
};
defineProperty( obj, 'beep', {
'configurable': false,
'enumerable': true,
'writable': true,
'value': true
});
var bool = isConfigurablePropertyIn( obj, 'boop' );
// returns true
bool = isConfigurablePropertyIn( obj, 'beep' );
// returns false
Tests if an object's own or inherited property is configurable.