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

x/dtils/mod.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@1.6.3/mod.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