An ES6 Object.keys shim.
npm install object-keys-x href="https://travis-ci.org/Xotic750/object-keys-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/object-keys-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/object-keys-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/object-keys-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/object-keys-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/object-keys-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/object-keys-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/object-keys-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
An ES6 Object.keys shim.
This method returns an array of a given object's own enumerable properties,
in the same order as that provided by a for...in loop (the difference being
that a for-in loop enumerates properties in the prototype chain as well).
Kind: Exported member
Returns: Array - An array of strings that represent all the enumerable properties of the given object.
| Param | Type | Description |
| ----- | --------------- | --------------------------------------------------------------------- |
| obj | \* | The object of which the enumerable own properties are to be returned. |
Example
``js
import objectKeys from 'object-keys-x';
const obj = {
arr: [],
bool: true,
null: null,
num: 42,
obj: {},
str: 'boz',
undefined: void 0,
};
console.log(objectKeys(obj)); // ['arr', 'bool', 'null', 'num', 'obj', 'str', 'undefined']
``