Hacker News new | ask | show | jobs
by rhardih 2296 days ago
Why write code to left pad your strings, when you can get an O(n log n) implementation just like that. You only need a "minimal" amount of bundle tooling and a few hundred MB of node_modules. Count your blessings. This is the way.