📜  如何在javascript代码示例中压缩两个数组

📅  最后修改于: 2022-03-11 15:03:51.803000             🧑  作者: Mango

代码示例1
let ladies = ["Elise", "Mary"]
let gentlemen = ["John", "Rick"]

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

console.log(doubleDate)