Hacker News new | ask | show | jobs
by coldtea 2977 days ago
>There's a tangible difference between `value % 2 === 1` and this

No, there isn't. Both are trivial to write and avoid an external dependency.

Besides, the implementation leftpad doesn't have to be this crappy -- one can do it in 3 lines.