I have two arrays:
[{Name: "Jack", Depot: "5"}, {Name: "Jill", Depot: "6"}]
and
[{Depot Name: "Edgware"}, {Depot Name: "Romford"}]
I need to take the objects from the second array and merge them with the objects in the first array to produce a result of:
[{Name: "Jack", Depot: "5", Depot Name: "Edgware"}, {Name: "Jill", Depot: "6", Depot Name: "Romford"}]
Any help with this would be much appreciated