If I have an array such as this:
let arr = [{name: "Cool", subject_schedule: ["So","3610A", "USA", "1010"]}, {name: "Lots", subject_schedule: ["Dog","1310A", "CAN", "2020"]} ];
How can I make it so the "subject_schedule" property in each of the objects in the array is combined into pairs such as:
let result = [{name: "Cool", subject_schedule: ["So 3610A", "USA 1010"]}, {name: "Lots", subject_schedule: ["Dog 1310A", "CAN 2020"]} ];