Есть ли функция в JavaScript 6, которая позволяет сопоставлять несколько массивов?Javascript ES6 - карта нескольких массивов
Что-то, как молния:
var myFn = function (a, b) { console.log(a, b);}
var arr1 = ['a', 'b', 'c'];
var arr2 = [1, 2, 3];
arr1.map(myFn, arr2); // imaginary syntax.
// prints :
// a 1
// b 2
// c 3
Это похоже на уже ответили на вопрос: [http://stackoverflow.com/questions/4856717/javascript-equivalent-of-pythons-zip-function](http://stackoverflow.com/questions/4856717/javascript-equivalent-of-pythons -zip-function) – HartleySan