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