hintFor: (word: string, n?: number, options?: { maskChar?: string }) => string
Type Declaration
-
- (word: string, n?: number, options?: { maskChar?: string }): string
-
Parameters
- word: string
Optionaln: number
Optionaloptions: { maskChar?: string }
Returns string
Reveal the first n letters: hintFor('bandung', 3) → 'ban____'.