Comment

Comment by whostolemyhat

Left-pad was made at a time when tree-shaking wasn't really around, so it was good practice to only include the functions you needed to avoid making websites too heavy. If you just needed a small function then it'd be silly to include a huge utility library like Underscore.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton