npm.io

Leadingzero Packages

addleadingzero

You can call this function with a number as an argument and it will return the number with a leading zero if it's less than 9, or the original number if it's 9 or greater:

addleadingzeroaddzeroleadingzerodigits
1.0.1 • Published 2 years ago

contact@npm.io