3 ms·
Hm, at first I thought that they went with "padStart" instead of "padLeft" to address RTL languages, but the documentation still says > The padding is applied
by pavel_lishin 8y ago
Hm, at first I thought that they went with "padStart" instead of "padLeft" to address RTL languages, but the documentation still says
> The padding is applied from the start (left) of the current string.
I wonder if they just didn't want the "pad-left" stigma.
- JoshTriplett 8y agoMany current programming languages and libraries go with start/end rather than left/right precisely because of RTL languages. Clarifying "start (left)" doesn't seem unreasonable to help readers of English documentation understand, though it should probably say "start (left in left-to-right languages)".