Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length.
string
length
Contribution to minified bundle size, when it is the only function imported:
Optional
Pads
string
on the left and right sides if it's shorter thanlength
. Padding characters are truncated if they can't be evenly divided bylength
.Contribution to minified bundle size, when it is the only function imported: