Why don't people just use lodash?
https://lodash.com/docs#padStart
It's well-tested, well-maintained, performant, with good documentation and has custom-build to leave out functions you don't need.
https://lodash.com/docs#padStart
It's well-tested, well-maintained, performant, with good documentation and has custom-build to leave out functions you don't need.