num-pad
Version:
Simple function to pad the passed in number, if less than 10 return 0<num> otherwise just returns the number.
9 lines (6 loc) • 235 B
JavaScript
Simple function to pad the passed in number, if less than 10 return 0<num> otherwise just returns the number.