how to zip two arrays in javascript
snippet in javascript

how to zip two arrays in javascript

user4916

let ladies = ["Elise", "Mary"]
let gentlemen = ["John", "Rick"]

var doubleDate = ladies.map(function(lady, i) {
  return [lady, gentlemen[i]];
});

console.log(doubleDate)