5 ms·
Isn't that kind of what Lodash is?
by orf 11y ago
Isn't that kind of what Lodash is?
- halostatue 11y agoMy understanding is that Lodash started as a replacement for Underscore.js and was originally fairly monolithic. Only in the most recent version do they make it so that each function is separately requirable and published. They have modularized after starting monolithically (without verifying, I also think that Lodash develops in a single repository, but publishes a bunch of modules from that one repo).
- xlm1717 11y agoIt even includes a function for padding strings. I think you would be doing better for yourself using lodash over left-pad, and the cost of including a bigger library on server-side JS is negligible.