decord/source/__polyfill/03xxx/module_3968.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

27 lines
521 B
JavaScript

// Module ID: 3968
// Function ID: 3969
// Dependencies: []
// Exports: default
// Module 3968
export default function addLeadingZeros(arg0, arg1) {
let length;
let str = "";
if (arg0 < 0) {
str = "-";
}
const str1 = Math.abs(arg0).toString();
let tmp = str1;
let tmp2 = str1;
if (str1.length < arg1) {
do {
let text = `0${tmp}`;
tmp = text;
tmp2 = text;
length = `0${tmp}`.length;
} while (length < arg1);
}
return str + tmp2;
};
export default exports.default;