Skip to main content
Module

std/strings/mod.ts>FillOption

Deno standard library
Go to Latest
interface FillOption
import { type FillOption } from "https://deno.land/std@0.34.0/strings/mod.ts";

FillOption Object

Properties

optional
char: string

Char to fill in

optional
side: "left" | "right"

Side to fill in

optional
strict: boolean

If strict, output string can't be greater than strLen

optional
strictChar: string

char/string used to specify the string has been truncated

optional
strictSide: "left" | "right"

Side of truncate