I work in javascript Project.
I'm now about search after option to merge two objects, as the second object will only ovveride fields of the first object and not add new fields which the second not has.
Something like:
const firstObj = {name:'jon', age:'6}
const secondObj = {name:'nir', mark:'100%'}
const mergedObj = leftMerge(firstObj, secondObj);
So I like mergedObj to be:
{name:'nir', age:'6'}
Is I have any way to do that with javascript (I worl with EcmaScript 6), or with immutable.js library?