Hello @zburke,
when using for..of, you would need to call entries() in order to get the index:
for (const [index, element] of list.entries()) {
console.log(`${element} of ${index}`);
}
Hello @zburke,
when using for..of, you would need to call entries() in order to get the index:
for (const [index, element] of list.entries()) {
console.log(`${element} of ${index}`);
}