Initial commit of files.

This commit is contained in:
phunter committed 2026-02-02 20:01:57 +00:00
commit 695f853c94
10000 files changed
+608932

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export default function addLeadingZeros(number, targetLength) {
var sign = number < 0 ? '-' : '';
var output = Math.abs(number).toString();
while (output.length < targetLength) {
output = '0' + output;
}
return sign + output;
}