greg 4d1d2f8c52
Some checks failed
continuous-integration/drone Build is failing
maj
2023-06-11 20:17:11 +02:00

7 lines
120 B
JavaScript
Executable File

'use strict'
module.exports = (d, num) => {
num = String(num)
while (num.length < d) num = '0' + num
return num
}