Tell me if there is a function in js / jquery for merging two arrays into one, as follows, so that the value of the first array is a key, and the value of the second is the value of this key, for example
var arr1 = ["first","second"]; var arr2 = ["1","2"]; var newArr = ["first":"1","second":"2"]; Thank you all figured out !!!