Esiste una funzionalità in JavaScript 6 che consente di eseguire il mapping su più array?Javascript ES6 - mappa più array
Qualcosa di simile a una chiusura lampo:
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
Questo sembra già rispondere alla domanda: [http://stackoverflow.com/questions/4856717/javascript-equivalent-of-pythons-zip-function](http://stackoverflow.com/questions/4856717/javascript-equivalent-of-pythons -zip-function) – HartleySan