How to create object from array in JavaScript

Arrays
Last updated Jan 04, 2018
const apps = ["phone", "calculator", "clock"];
const object = {};

apps.map((value, index) => (object[index] = value));

console.log(object);
{
    0: "phone",
    1: "calculator",
    2: "clock"
}