How can I create an object from two arrays without using loops in JavaScript.
example:
array1 = [ 1, 2, 3, 4, 5 ];
array2 = [ 'A', 'B', 'C', 'D', 'E' ];
I want from below object
obj = {
'1': 'A',
'2': 'B',
'3': 'C',
'4': 'D',
'5': 'E',
}