I need to regroup these two arrays:
arrayOne = ['A', 'B', 'C', 'D', 'A', 'C'];
arrayTwo = ['1', '2', '3', '4', '5', '6'];
Here's the output I'm looking for:
groupedOutput = {
'A': ['1', '5'],
'B': ['2'],
'C': ['3', '6'],
'D': ['4']
}
Any ideas?