Sham for Reflect.ownKeys
npm install reflect-own-keys-x href="https://travis-ci.org/Xotic750/reflect-own-keys-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/reflect-own-keys-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/reflect-own-keys-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/reflect-own-keys-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/reflect-own-keys-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/reflect-own-keys-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/reflect-own-keys-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/reflect-own-keys-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
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
``js
import reflectOwnKeys from 'reflect-own-keys-x';
reflectOwnKeys({a: 1, b: 2}); // ['a', 'b']
``