Skip to content

aleproust/deep-assign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

deep-assign

Example

const a = { a: 1, b: {customAttributes: {type: 'object'}}};
const b = { a: 1, b: {customAttributes: {properties: {HardwareType: {type: 'keyword'}}}}};

console.log(deepAssign(a,b));

result: {
    a: 1,
    b: {
      customAttributes: {
        type: 'object',
        properties: {
          HardwareType: {
            type: 'keyword'
          }
        }
      }
    }
  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors