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