In the `buildList` example, there’s no need to stop using `for-of` just to get access to the index. Try:
for (const [index, item] of items.entries()) {
output.push(`Item ${index + 1}: ${items[index]}`);
}
Smaller diff, might be easier to follow. WDYT?
In the `buildList` example, there’s no need to stop using `for-of` just to get access to the index. Try:
for (const [index, item] of items.entries()) {
output.push(`Item ${index + 1}: ${items[index]}`);
}
Smaller diff, might be easier to follow. WDYT?
You seem to want “100 MiB”, which is unambiguous.
You seem to want “100 MiB”, which is unambiguous.