index: better JSDoc comments
index: optimize Map iterating logic

No need to manually store an Array of the element and callback
function, just use the `.entries()` function instead of `.values()`!
v0.0.2