censorText: (
text: string,
words: string[],
options?: { char?: string },
) => string
Type Declaration
-
- (text: string, words: string[], options?: { char?: string }): string
-
Parameters
- text: string
- words: string[]
Optionaloptions: { char?: string }
Returns string
Star out listed words (first+last letter kept for 3+ letters).