Skip to content

Commit

Permalink
Update lib/str.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Skałka <[email protected]>
  • Loading branch information
blazejkustra and Skalakid authored Jun 4, 2024
1 parent e43380e commit fe78305
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/str.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@ const Str = {
/**
* Replace first N characters of the string with maskChar
* eg: maskFirstNCharacters( '1234567890', 6, 'X' ) yields XXXXXX7890
* @param str string to mask
* @param num number of characters we want to mask from the string
* @param mask string we want replace the first N chars with
* @returns masked string
* @param str String to mask
* @param num Number of characters we want to mask from the string
* @param mask String we want replace the first N chars with
* @returns Masked string
*/
maskFirstNCharacters(str: string, num: number, mask: string): string {
// if str is empty, str or mask aren't strings,
Expand Down

0 comments on commit fe78305

Please sign in to comment.