I have an array that is created dynamic from an xml document looking something like this:
myArray[0] = [1,The Melting Pot,A] myArray[1] = [5,Mama\'s Mexican
Good ol' ES5 Array Extras are great.
var other = {}; myArray.forEach(function(n, i, ary){ other[n[2]] = n.slice(0,2); });