I have 2 separate array but both of them have same length. How to merge them together into an array object so that it's easy to populate later?
for example
[1,2,3,4,5]
['a','b','c','d','e']
I expect I can have something like
[{'index':1,'value':'a'},{'index':2,'value':'b'}]
I've tried
    $.each(a, function(i,x){
      $.each(b, function(i,z){
        c['index'] = x;
        c['value'] = z;
      });
    });
But I got only [{'index':'1','value':'a'}]
