get-own-non-enumerable-keys-x
Like Reflect.ownKeys but gets only non-enumerable properties.
wn-non-enumerable-keys-x--module.exports">
module.exports(target)
⇒ Array
⏏
This method returns only the non-enumerable own keys of an object. Note: It is not possible the get a list of non-enumerable own keys in older environments and therefore an empty array will be returned.
Kind: Exported function
Returns: Array
- The non-enumerable own keys.
Throws:
typeError
- If target is null or undefined.
Param | Type | Description |
---|---|---|
target | Object |
The target. |
Example
; const obj = bar: 1 foo: 2;Object; const symbol = Symbol'first';Object; ; // ['1', symbol]