Javascript – How to check two arrays and replace the data if the properties match
I have 2 array. As a result, I should get 1 array. If "groupPoint" matches, then take the data from the "data" array. initialData = [ {groupPoint: '00:00', soldLeads: 0}, {groupPoint: '01:00', soldLeads: 0}, {groupPoint: '02:00', soldLeads: 0}, {groupPoint: '03:00',…