Considering the two arrays bellow:
let aaa = [{label: "nu", angle: 5}, {label: "na", angle: 3}]
let bbb= [{label: "nu", angle: 2}, {label: "na", angle: 6}]
How can I add the value on the angle key from one object with the corresponding one from the next array of objects and return one object or the other.
the result should be:
let ccc= [{label: "nu", angle: 7}, {label: "na", angle: 9}]
I have no idea how to solve this
labelhave the same index in both arrays? Or can they be in random positions? Canlabelrepeat in array?