Skip to main content
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@2.2.0/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