Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method TimeUtil.prototype.pad
Re-export
import { TimeUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";

Pads a number with a leading zero if it is less than 10.

Parameters

number: number
  • The number to pad.

Returns

string

The padded number as a string.