4.1.2 • Published 5 years ago

get-own-non-enumerable-keys-x v4.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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.
ParamTypeDescription
targetObjectThe target.

Example

import getOwnNonEnumerableKeys from 'get-own-non-enumerable-keys-x';

const obj = {bar: 1, foo: 2};
Object.defineProperty(obj, '1', {
  value: 'first',
});

const symbol = Symbol('first');
Object.defineProperty(obj, symbol, {
  value: 'second',
});

getOwnNonEnumerableKeys(obj); // ['1', symbol]
4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.13

5 years ago

4.0.12

5 years ago

4.0.11

5 years ago

4.0.10

5 years ago

4.0.9

5 years ago

4.0.8

5 years ago

4.0.7

5 years ago

4.0.6

5 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago