Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.unstable.ts>fixedStartDigits

The best unofficial library of utilities for Deno applications
Go to Latest
function fixedStartDigits
Re-export
import { fixedStartDigits } from "https://deno.land/x/dtils@2.6.0/mod.unstable.ts";

Sets the amount of zeros before a number. If digits is null, there will be no extra digits in front of the number

Parameters

number: number
digits: number | null

Returns

string