input object
a list of own and inherited 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 = writablePropertyNamesIn( obj );
// e.g., returns [ 'a', ... ]
Returns an array of an object's own and inherited writable property names.
Notes
null
orundefined
, the function returns an empty array.