Skip to content

Function: dedentLines()

dedentLines(text, options?): string[]

Right-strip every line, remove common indentation, and optionally trim leading and trailing blank lines. Whitespace-only lines normalize to empty lines, matching common dedent implementations.

string

DedentOptions = {}

string[]