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