I currently have data that is coming back in the following format:
[
[144, '[email protected]', '7358'],
[145, '[email protected], '7358'],
[146, '[email protected], '7359'],
.....
]
I am trying to convert the array of arrays into an array of objects that would look like the following:
[
{employeeId: 144, WorkEmail: '[email protected]', ClubNumber: '7358'},
{employeeId: 145, WorkEmail: '[email protected]', ClubNumber: '7358'},
{employeeId: 146, WorkEmail: '[email protected]', ClubNumber: '7359'},
]
I am having trouble wrapping my mind around assigning keys to the individual items in each array.