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