mardi 24 mars 2015

Combine two normal arrays to create key:value pair array


I have two arrays like so:


arr1 = ['one','two','three']


arr2 = ['1','2','3']


Is the a way with jQuery to combine them so the output would be like:


arr3 = ['one':'1', 'two':'2', 'three':'3']





Aucun commentaire:

Enregistrer un commentaire