Strip the newlines and indentations out of a multi-line template literal:
{ return ` one two three `}
compiles to
{ return "\n one\n two\n three\n ";}
so use mltl:
{ return } console == // one\ntwo\nthree
mltl(str: string, removeNewLines: boolean): string
str
is the template literal string to strip from indent whitespaceremoveNewLines
is an option if new lines should be substituted by spaces or left alone