Signature
path=null start=null
Parameters
- str:
string- The input string.
Returns
{ [key: string]: number } - An object where keys represent letters (lowercase) and values represent their counts.
Counts the occurrences of each letter in a given string.
string - The input string.{ [key: string]: number } - An object where keys represent letters (lowercase) and values represent their counts.