Skip to content

@technobuddha > library > String > Operations

Function: indent()

ts
function indent(input: string, options: IndentOptions): string;

Defined in: indent.ts:22

Indent each line of a string

Parameters

ParameterTypeDescription
inputstringThe string to indent
optionsIndentOptionssee IndentOptions

Returns

string

string with each line indented

Default Value

ts
indenter space