top | item 41361236

(no title)

throwaway63820 | 1 year ago

you mean the native `str.padStart(targetLength, padString)`

discuss

order

zamadatix|1 year ago

To be fair (as one who leans pretty heavy in favor of the JS world) .padStart() was only added in response to the aforementioned left-pad fiasco. The language adding that was more a face saving measure from the blowback than an attempt to fix the actual problems.

Despite all that, left-pad still gets > 1 million weekly downloads on npm.