Skip to content

@technobuddha > library > String > Analysis

Function: getIndent() ​

ts
function getIndent(input: string, options: IndentOptions): number;

Defined in: get-indent.ts:13

Determine the indentation level of text

Parameters ​

ParameterTypeDescription
inputstringThe indented text
optionsIndentOptionssee IndentOptions

Returns ​

number

The minimum amount of indentation on each line

Default Value ​

ts
indenter space