let courts = [
// dynamic
{ courtID: 1, court: "Onzie" },
{ courtID: 2, court: "Twozie" },
{ courtID: 3, court: "Threezie" },
{ courtID: 4, court: "Fourzie" }
];
let players = [
// dynamic
{ player: "Bengt", id: 1, court: null },
{ player: "Robin", id: 2, court: null },
{ player: "Phil", id: 3, court: null },
{ player: "Pontus", id: 4, court: null }
];
How can i combine these two arrays so that the player(s) are randomly matched with a corresponding court?