object-first-key
Returns the first own key of an object
Install
Ensure you have Node.js version 4 or higher installed. Then run the following:
$ npm install object-first-key
Usage
// ES5const objectFirstKey = ;// ES2015+; === 'hello'; === undefined;
The return value for an object with more than one own property keys is intentionally left unspecified.
License
MIT © Cameron Knight