Closed Armanio closed 2 months ago
Thanks for your PR, @Armanio!
While I certainly appreciate the upgrade here, it gave me an even better idea: use String#padStart
and String#padEnd
to achieve this. I added this in 8a30eaff82f47495cd5fb781d2e008ccd7491861, and will therefore be closing this PR.
Thanks again for the inspiration here!
Glad I helped 👍
Hi! What about native str.repeat? I think we can use it (https://caniuse.com/mdn-javascript_builtins_string_repeat).