Javascript – How can I replace the first value in the second list with the last value in the previous list?
In this list of objects we have value groupID, Which contains a list. What I want is to replace the first value in the list with the last value in the previous list. let testArr = [ {groupID: [1900, 1890,…