I have two arrays:
array1 = [\"Bob\", \"John\", \"Dave\"]; array2 = [1, 2, 3];
Is there combine the two into a javascript array filled with obj
Assuming you're using Chrome, you could do:
const combined = array1.map((name,i) => ({meta: name, value: array2[i]}))