Set value in nested object.
npm i nessy --save
const nessy = require('nessy');
nessy('hello.world', 'why not?', '.', {
hello: {
world: 'could be used in browser as well',
},
});
// returns
({
hello: {
world: 'why not?',
},
});
nessy('hello*world', 'why not?', '*', {
hello: {
world: 'can be used any divider',
},
});
// returns
({
hello: {
world: 'why not?',
},
});
- jessy - get value by object property.
- all-object-keys - get all keys of object.
- finicky delete property of an object
MIT