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