decord/source/__polyfill/03xxx/module_3971.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

27 lines
521 B
JavaScript

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