- map(str: string, fn: ((char: string, index: number, chars: string[]) => string)): string
-
Parameters
-
str: string
-
fn: ((char: string, index: number, chars: string[]) => string)
-
- (char: string, index: number, chars: string[]): string
-
Parameters
-
char: string
-
index: number
-
chars: string[]
Returns string
Returns string
Just like array.map
Example