I was wanting to see if there is a relatively simple method for doing this as I can use the following:
var arr = [ "Client", "ActType", "CallRepType"];
var arr2 = [ "ECF", "Meeting", "Call Report"]
var myobj = arr2.map(value => ({'Client': arr2[0], 'ActType': arr2[1], 'CallRepType': arr2[2]}));
But I get the same correct object 3 times in a row...I simply want a single object returned that looks like:
{Client: 'ECF', ActType: 'Meeting', CallRepType: 'Call Report'}
I know I can loop through both arrays but I was hoping to get a solution using map, reduce or taking advantage of spread in javascript...