包详细信息

all-object-keys

coderaiser7.6kISC3.0.2

get all keys of object

json, object, key, nested

自述文件

all-object-keys License NPM version 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',
];

Related

  • jessy - get value by object property.
  • nessy - set value in nested object.

License

MIT