I like this post although a struggle I had recently was that padStart and padEnd are not supported on IE.
padStart
padEnd
I tried to find polyfill but there is not an official one so I ended up in a custom solution.
Thanks! Yeah, those quirks with different browsers... MDN references this polyfill for String#padStart and String#padEnd: github.com/behnammodi/polyfill/blo...
String#padStart
String#padEnd
Back when IE mattered
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I like this post although a struggle I had recently was that
padStart
andpadEnd
are not supported on IE.I tried to find polyfill but there is not an official one so I ended up in a custom solution.
Thanks! Yeah, those quirks with different browsers... MDN references this polyfill for
String#padStart
andString#padEnd
: github.com/behnammodi/polyfill/blo...Back when IE mattered