Skip to content

pad

Pads a string to a target length.

ts
import { pad } from '@vielzeug/toolkit';

pad('hi', 6, '.'); // '..hi..'