1
0
Fork 0
js-utils/docs/api/js-utils.leftpad.md

615 B

Home > @apextoaster/js-utils > leftPad

leftPad() function

Prefix val with fill until it is at least min characters.

Signature:

export declare function leftPad(val: string, min?: number, fill?: string): string;

Parameters

Parameter Type Description
val string
min number (Optional)
fill string (Optional)

Returns:

string