@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
| Parameter | Type | Description |
|---|---|---|
input | string | The indented text |
options | IndentOptions | see IndentOptions |
Returns
number
The minimum amount of indentation on each line
Default Value
ts
indenter space