mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-17 13:15:42 +02:00
fase 5
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
export function addLeadingZeros(number, targetLength) {
|
||||
const sign = number < 0 ? "-" : "";
|
||||
const output = Math.abs(number).toString().padStart(targetLength, "0");
|
||||
return sign + output;
|
||||
}
|
||||
Reference in New Issue
Block a user