See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| //Object.assign(target, sources... ) method | |
| // used to copy objects OR | |
| // to merge objects | |
| let obj1 = {"arms":true, "armCount":2}; | |
| let obj2 = {"weapons":['missle launcher', 'reciprocating saw']}; | |
| let obj3 = {"canMove":true, "legs":0, "treads":2}; | |
| let arms = Object.assign({'hasHands':true, "arms": false}, obj1); | |
| console.log( arms ); |