4 ms·
> // translate will replace all instances; only need to run it once That comment is not helpful, because it's wrong. The translate() function just is some sort
by Thorrez 9mo ago
> // translate will replace all instances; only need to run it once
That comment is not helpful, because it's wrong. The translate() function just is some sort of lookup. It doesn't replace anything. It's the stringToReplace.replace() call that replaces all instances.