Hacker News new | ask | show | jobs
by unwind 1392 days ago
Uh no don't reassign the loop variable in the inner scope. Use:

    const j = (length - 1) - i;
in that case. Much safer.