The string to search within.
The character to count occurrences of. Must be a single character string of length 1.
If the char parameter is not a single character string of length 1.
strCountCharOccurances('hello world', 'o');;
//=> 2
Generated using TypeDoc
Counts the number of occurrences of a specific character in a string.