JSFiddle - React, Tailwind, and code Playground

by neverov12

JavaScript

const users = [
    "First",
    "Second",
    "Third"
];
const dates = [
    "17.10",
    "18.10",
    "19.10",
];
const actions = [
    "Chto-to",
    "Chto-to 2",
    "Chto-to 3",
];

let newArray = users.map((user, index) => {
                         user: user,
                         date: dates[index],
  action: actions[index]
});

console.log(newArray);