Skip to content

indent

Indents a string by adding a prefix to each line.

Import:

import { indent } from '@mnaoumov/typescript-lib/string';

Signature:

function indent(params: IndentParams): string

Parameters:

Parameter Type Description
params IndentParams The parameters.

Returns: string — The indented string.


Links to this page: