circle-assign
circle-assign is a simple deep object assign function and can be used in nodejs and the browser
Installation
$ npm install --save circle-assign
Syntax
Usage
NodeJS
const circleAssign = ;
Browser (ES6)
;
Browser (CDN)
const a = language: 'javascript' features: recursive: true size: 'small' ; const b = language: 'JavaScript' opensource: true features: size: '~1.3kb' canMergeFunctions: true ; const c = { console; }; console;
Output
{
language: "JavaScript",
opensource: true,
features: {
recursive: true,
size: "~1.3kb",
canMergeFunctions: true
},
coolFunc: () => {
console.log('Much wow');
}
}