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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Counts the occurrences of each letter in a given string.
countLetters(str: string): { [key: string]: number }
string - The input string.{ [key: string]: number } - An object where keys represent letters (lowercase) and values represent their counts.