String.prototype.padLeft / String.prototype.padRight
a.d.bergi at web.de
Wed Nov 18 00:48:09 UTC 2015
Jeremy Darling schrieb:
> Just as an aside, I think padLeft/padRight should still be added in
> addition to padStart/padEnd. There are times (token generation, identity
> padding, etc) where you would want to specify the handedness of the pad
> operation and ignore the locale. This goes for the trim* methods as well.
I don't get that argument. Doesn't `start`/`end` exactly do that: ignore
the locale? It always trims/pads at the start/end of the string,
regardless whether that will be rendered to the left or right of the screen?
More information about the es-discuss