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

x/dtils/lib/number.ts>fixedStartDigits

The best unofficial library of utilities for Deno applications
Go to Latest
function fixedStartDigits
import { fixedStartDigits } from "https://deno.land/x/dtils@2.0.0-beta.1/lib/number.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