title: javascript - get index in Map.prototype.forEach()
body: <p><code>Map.prototype.forEach</code> takes callback with two params: value and key.
  Is it possible to get the index of each entry, similar to <code>Array.prototype.forEach((value, index) =&gt; {})</code></p>