It should be in the standard library anyway. Why the hell is it not?!
I mean yeah, I can write my own function to do the same thing and probably I’ve done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language.
It should be in the standard library anyway. Why the hell is it not?!
I mean yeah, I can write my own function to do the same thing and probably I’ve done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language.
It is, as padStart, which makes the number of packages using leftpad even more incomprehensible