title: Detect last iteration in FOR OF loop in ES6 javascript
body: <p>There are multiple ways of finding out the last iteration of a <code>for</code> and <code>for...in</code> loop. But how do I find the last iteration in a <code>for...of</code> loop. I could not find that in the documentation.</p>
  <pre><code>for (item of array) {
      if (detect_last_iteration_here) {
          do_not_do_something
      }
  }
  </code></pre>