edit-nested-object
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Installations

npm i edit-nested-object

What ?

With this module you can edit nested object with keys like "name.first" etc

How ?

const editObject = require('edit-nested-object');

// import editObject from "./" // for typescript

const ob = {
    name: {
        first: "Shisui",
        last: "Uchiha",
    }
}

console.log(editObject(ob,"name.first","Itachi")); // output => { name: { first: 'Itachi', last: 'Uchiha' } }

Supports

For support or issues or queries contace me on my discord server, If you find any bug create a issue here.

Readme

Keywords

Package Sidebar

Install

npm i edit-nested-object

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

5.64 kB

Total Files

6

Last publish

Collaborators

  • shisui