Consider that I have two arrays as follows:
let a1 = [{id:1, name:'jon'}, {id:2, name:'adam'}]
let a2 = [{id:1, age:42}, {id:2, age:13}]
I want to merge the two arrays so the JSON properties get combined into one array; i.e. this is what I want to end up with:
[{ id: 1, name: 'jon', age: 42 },{ id: 2, name: 'adam', age: 13 }]
Using Ramda I can do the following which gives me close to what I want, but annoyingly it's not in an array - it's all JSON
R.mergeDeepLeft(a1, a2)
{ '0': { id: 1, name: 'yasin', age: 42 },
'1': { id: 2, name: 'adam', age: 13 } }