dedent: Given a multi-line string indented with whitespace on every line, remove common indentation from each line.
Useful for tagged template literals.
See https://github.com/tc39/proposal-string-dedent for more context and prior art in other languages.
An MIT-licensed implementation in TypeScript exists at https://github.com/jridgewell/string-dedent
dedent: Given a multi-line string indented with whitespace on every line, remove common indentation from each line.
Useful for tagged template literals.
See https://github.com/tc39/proposal-string-dedent for more context and prior art in other languages.
An MIT-licensed implementation in TypeScript exists at https://github.com/jridgewell/string-dedent