Variable stripCommentsConst
stripComments: (text: string, replaceCh?: string) => string
Type Declaration
- (text: string, replaceCh?: string): string
Parameters
- text: string
OptionalreplaceCh: string
Returns string
ConstOptionalreplaceCh: string
Takes JSON with JavaScript-style comments and remove them. Optionally replaces every none-newline character of comments with a replaceCharacter