🌈 搜索
📅  最后修改于: 2022-03-11 15:02:42.498000             🧑  作者: Mango
const foobar = ['A', 'B', 'C']; for (const [index, element] of foobar.entries()) { console.log(index, element); }