@n3okill/utils
Version:
Many javascript helpers
10 lines (9 loc) • 443 B
TypeScript
/**
* Pads the current string with another string (repeated, if needed) so that the resulting string reaches the given length
* The padding is applied form the start (left) of the string
* @param str string to be padded
* @param length Final size of the string
* @param padString String to be added to the string
* @returns Padded string
*/
export declare function padStart(str: string, length: number, padString?: string): string;