decord/source/__polyfill/04xxx/module_4054.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

27 lines
521 B
JavaScript

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