@technobuddha/library
Version:
A large library of useful functions
10 lines (9 loc) • 338 B
TypeScript
/**
* Add leading zeros to a number to ensure a string of a minimum length
*
* @param input The number to pad
* @param length The minimum length of the resulting string
* @returns number as a string with leading zeros as needed
*/
export declare function padNumber(input: number, length?: number): string;
export default padNumber;