Skip to content

enigmamarketing/deep-assign-writable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This fork of deep-assign is exactly the same, except:

Non-writable properties will not be merged, and the original value will be kept.

Install

$ npm install --save deep-assign-writable

Usage

var deepAssign = require('deep-assign-writable');

deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
//=> {a: {b: 1, c: 3}}

deepAssign(target, source, [source, ...])

Recursively assigns own enumerable properties of source objects to the target object and returns the target object. Additional source objects will overwrite previous ones, if it is writable.

License

MIT © Enigma Marketing Services

About

Recursive Object.assign()

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%