const apps = ["phone", "calculator", "clock"]; const object = { ...apps }; console.log(object);
{ 0: "phone", 1: "calculator", 2: "clock" }