Skip to main content

Function: withoutAllComments()

withoutAllComments(text): string

text with its comments replaced by spaces (string and template literals are kept, so offsets and bracket access still read the same).

Parameters​

text​

string

Returns​

string