0
I need to merge two arrays of objects and I know there are many ways to do it but I am just curious what would be the best way to do it.
e.g - I have the following arrays,
array1 :[{ id :1, name : a, class :c1}, {id :2, name :b, class :c2}]
array2 :[{ id:1, score :20}, {id:2, score :30}]
wh...