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