📅  最后修改于: 2022-03-11 15:03:26.579000             🧑  作者: Mango
const yourArray = ['Jimbo', '555-555-5555', 'jimbo@aol.com'];
const [name, phone, email] = yourArray;
const yourObject = { name, phone, email };
console.log(yourObject);
Run code snippet