There are multiple ways of finding out the last iteration of a for
and for...in
loop. But how do I find the last iteration in a for...of
loop. I could not find that in the documentation.
for (item of array) {
if (detect_last_iteration_here) {
do_not_do_something
}
}