Trim begin and end of text, and also remove all indentations.
The text to trim.
The trimmed and de-indented text.
const text = ` Hello, world!`;const trimmed = trimIndented(text);// trimmed === "Hello,\nworld!" Copy
const text = ` Hello, world!`;const trimmed = trimIndented(text);// trimmed === "Hello,\nworld!"
Trim begin and end of text, and also remove all indentations.