I have N objects and i want to merge them. In my case i'm sure there won't be any collisions.
I have:
var a = {'name': 'Freeman'}
var b = {'email': '[email protected]'}
and i need :
c => {'name': 'Freeman', 'email': '[email protected]'}
Is there a smart way to do that?
Thanks in advance!
Trivia: I want to merge these objects while a reduce job