indent
Indents a string by adding a prefix to each line.
Import:
import { indent } from '@mnaoumov/typescript-lib/string';Signature:
function indent(params: IndentParams): stringParameters:
| Parameter | Type | Description |
|---|---|---|
params |
IndentParams | The parameters. |
Returns: string — The indented string.
Links to this page: