Skip to content

Function: strPadBoth() ​

strPadBoth(str, length, pad?): string

Defined in: src/formatters.ts:148

Pad both sides of a string with another.

Parameters ​

str ​

string

The source string

length ​

number

The desired length

pad? ​

string = ' '

The value to pad with

Returns ​

string

The padded string

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.