How to create object from array in JavaScript

Arrays
By Jad Joubran · 
Last updated Feb 18, 2020
const apps = ["phone", "calculator", "clock"];
const object = { ...apps };

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