Answers for "how to zip two arrays in javascript"

2

how to zip two arrays in javascript

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

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

console.log(doubleDate)
Posted by: Guest on October-30-2020

Code answers related to "how to zip two arrays in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language