Variables
Const padLeft
pad
Left: (n: number, ch?: string | number) => Stringer<any> = memoizeJ<number,string | number | undefined,Stringer<any>>((n, ch = " ") => {const buf = repeat(String(ch), n);return (x: any) =>x != null? ((x = x.toString()), x.length < n ? buf.substr(x.length) + x : x): buf;})Type declaration
- (n: number, ch?: string | number): Stringer<any>
Parameters
n: number
Optional ch: string | number
Zero-padded 2 digit formatter.