I have two arrays
A =[1990,1991,....]
B=[a,b,c,d,e,f,...]
I want the resultant array in this format
Resultant=[{
                name: 1990,
                data: [a,b,c]
            },{
                name: 1991,
                data: [d,e,f]
            },...
           ]
Please help me how will I make it using for loops?
 
     
     
    