JSFiddle - React, Tailwind, and code Playground

by shivaay123

JavaScript

let a = [9, 8, 7, 6];
let b = ["1", "2", "3"];
let zip = a.map(function (e, i) {
    return [e, b[i]];
});
console.log(zip);