input object
a list of own writable property names
var defineProperty = require( `@stdlib/utils/define-property` );
var obj = { 'a': 'b' };
defineProperty( obj, 'beep', {
'configurable': true,
'enumerable': true,
'writable': false,
'value': 'boop'
});
var keys = writablePropertyNames( obj );
// returns [ 'a' ]
Returns an array of an object's own writable property names.
Notes
null
orundefined
, the function returns an empty array.