Nice, I didn't know about Partial, nice find, will be useful!
Yup it could be used, but take into account that Object.assign doesn't merge nested objects.
letobjA={b:{name:'Train'}};letobjB={b:{description:'A vehicle that does not like to go uphill :)'}};letmerged=Object.assign(objA,objB);>{b:{description:"A vehicle that does not like to go uphill :)"}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Completely forgot that one exists. Symptom of working too much with an old IE11-supported javascript framework. :P
Nice, I didn't know about
Partial
, nice find, will be useful!Yup it could be used, but take into account that
Object.assign
doesn't merge nested objects.