7 lines
120 B
JavaScript
Raw Normal View History

2024-07-07 18:49:38 -07:00
'use strict'
module.exports = (d, num) => {
num = String(num)
while (num.length < d) num = '0' + num
return num
}