consider this two arrays array y and array x i need to concatenates them but not after each other but be organised as in the form of array k the concatenate method just output them after each other
let x=['name','age','id'];
let y=['kyle',50,5050];
let k= x.concat(y);
the output i get is
k=['name','age','id','kyle',50,5050]
so how to merge them to get this output array
let k=['name':'kyle','age':50,'id':5050]