Nessy
Set value in nested object.
Install
npm i nessy --save
Hot to use?
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?'
}
}
}
Related
- jessy - get value by object property.
- all-object-keys - get all keys of object.
- finicky delete property of an object
License
MIT