get-own-enumerable-keys-x
Like Reflect.ownKeys but gets only enumerable properties.
module.exports(target)
⇒ Array
⏏
This method returns only the enumerable own keys of an object.
Kind: Exported function
Returns: Array
- The 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'second';Object; console; // ['bar', 'foo', symbol]