Tagged template literal that strips common leading indentation from every line, trims the first empty line and any trailing whitespace.
Useful for writing multi-line strings inside indented code without the indentation leaking into the runtime value.
Rest
const msg = dedent` Hello, world!`;// "Hello,\n world!" Copy
const msg = dedent` Hello, world!`;// "Hello,\n world!"
Tagged template literal that strips common leading indentation from every line, trims the first empty line and any trailing whitespace.
Useful for writing multi-line strings inside indented code without the indentation leaking into the runtime value.