decord/source/__polyfill/03xxx/module_3969.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

27 lines
521 B
JavaScript

// Module ID: 3969
// Function ID: 3970
// Dependencies: []
// Exports: default
// Module 3969
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;