reflect-own-keys-x

3.1.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

reflect-own-keys-x

Sham for Reflect.ownKeys

module.exportsObject

This method returns an array of the target object's own property keys. Its return value is equivalent to Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target)).

Kind: Exported member
Returns: Object - An Array of the target object's own property keys.
Throws:

  • TypeError If target is not an Object.
Param Type Description
target * The target object from which to get the own keys.

Example

import reflectOwnKeys from 'reflect-own-keys-x';
 
reflectOwnKeys({a: 1, b: 2}); // ['a', 'b']

Package Sidebar

Install

npm i reflect-own-keys-x

Weekly Downloads

145

Version

3.1.2

License

MIT

Unpacked Size

443 kB

Total Files

11

Last publish

Collaborators

  • xotic750