I have two arrays:
array1 = [\"Bob\", \"John\", \"Dave\"]; array2 = [1, 2, 3];
Is there combine the two into a javascript array filled with obj
Simple solution using Array.prototype.map() function:
Array.prototype.map()
var array1 = ["Bob", "John", "Dave"], array2 = [1, 2, 3], combined = array1.map(function(v, k, a){ return {meta: v, value: array2[k]}; }); console.log(combined);