JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1572
  • Score
    100M100P100Q109736F
  • License ISC

get all keys of object

Package Exports

  • all-object-keys
  • all-object-keys/legacy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (all-object-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

all-object-keys License NPM version Dependency Status Build Status Coverage Status

Get all keys of object. Use jessy to get value. Use nessy to set value.

Install

npm i all-object-keys --save

Hot to use?

const keys = require('all-object-keys');

keys({
    universal: true,
    hello: {
        world: {
            'could be used in browser as well'
        }
    }
});

// returns
['universal', 'hello.world']

Environments

In old node.js environments that supports es5 only, all-object-keys could be used with:

var keys = require('all-object-keys/legacy');

In browser:

<script src="dist/all-object-keys.js"></script>
<script>
    allObjectKeys('.', {
        could: {
            be: 'used'
        }
    });
    
    // returns
    ['could.be']
</script>

License

MIT