Skip to content

bloodyKnuckles/edit-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edit-object

example

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' } }

About

Modify an object with another object. Add, update, delete properties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published