UNPKG

all-object-keys

Version:
46 lines (33 loc) 1.51 kB
# all-object-keys [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] Get all keys of object. Use [jessy](https://github.com/coderaiser/jessy "jessy") to get value. Use [nessy](https://github.com/coderaiser/nessy "nessy") to set value. ## Install `npm i all-object-keys --save` ## Hot to use? ```js const keys = require('all-object-keys'); keys({ universal: true, hello: { world: 'could be used in browser as well', }, }); // returns [ 'universal', 'hello.world', ]; ``` ## Related - [jessy](https://github.com/coderaiser/jessy "jessy") - get value by object property. - [nessy](https://github.com/coderaiser/nessy "nessy") - set value in nested object. ## License MIT [NPMURL]: https://npmjs.org/package/all-object-keys "npm" [NPMIMGURL]: https://img.shields.io/npm/v/all-object-keys.svg?style=flat [BuildStatusURL]: https://github.com/coderaiser/all-object-keys/actions/workflows/nodejs.yml [BuildStatusIMGURL]: https://github.com/coderaiser/all-object-keys/actions/workflows/nodejs.yml/badge.svg [LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat [LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License" [CoverageURL]: https://coveralls.io/github/coderaiser/all-object-keys?branch=master [CoverageIMGURL]: https://coveralls.io/repos/coderaiser/all-object-keys/badge.svg?branch=master&service=github