var editObj = require('edit-object')
var targetobject = {
a: 'one',
b: 'two',
c: { test: 'fun', skip: 'yes' }
}
var editobject = {
b: undefined,
c: { test: 'hey', addme: 'wow' }
}
editObj(targetobject, editobject)
console.log(targetobject)
// { a: 'one', c: { test: 'hey', skip: 'yes', addme: 'wow' } }
bloodyKnuckles/edit-object
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Modify an object with another object. Add, update, delete properties.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published