import { pad0 } from "https://deno.land/x/simple_utility@v1.3.4/mod.universal.ts";
Create string with zero padding at beginning of number. Output is 2 digits by default.
Examples
Example 1
Example 1
const num = 8;
const padding = pad0(num);
import { pad0 } from "https://deno.land/x/simple_utility@v1.3.4/mod.universal.ts";
Create string with zero padding at beginning of number. Output is 2 digits by default.
Example 1
const num = 8;
const padding = pad0(num);