4 ms·
It has been standardized meanwhile, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart https://developer.mozil
by gildas 8y ago
It has been standardized meanwhile, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- pavel_lishin 8y agoHm, 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)".