@thi.ng/strings
Version:
Various string formatting & utility functions
18 lines • 522 B
TypeScript
/**
* @param n - target length
* @param ch - pad character(s)
*/
export declare const padLeft: (n: number, ch?: string | number) => (x: any, length?: number) => string;
/**
* Zero-padded 2 digit formatter.
*/
export declare const Z2: (x: any, length?: number) => string;
/**
* Zero-padded 3 digit formatter.
*/
export declare const Z3: (x: any, length?: number) => string;
/**
* Zero-padded 4 digit formatter.
*/
export declare const Z4: (x: any, length?: number) => string;
//# sourceMappingURL=pad-left.d.ts.map