What\'s the correct way to merge two arrays in Javascript?
I\'ve got two arrays (for example):
var a1 = [{ id : 1, name : \"test\"}, { id : 2, name :
None of them worked for me. I wrote own:
const formatteddata=data.reduce((a1,a2)=>{ for (let t=0; t
works with any amount of arrays of objects in arrays, with varying length and not always coinsciding dates