Removes common leading whitespace from each line of a multiline string. Also removes blank lines from the beginning and end of the string.
The multiline string to dedent
A new string with common indentation removed
dedent(` hello world`) // 'hello\nworld' Copy
dedent(` hello world`) // 'hello\nworld'
Removes common leading whitespace from each line of a multiline string. Also removes blank lines from the beginning and end of the string.