ichigyou
    Preparing search index...

    Function countLetters

    • Counts the occurrences of each letter in a given string.

      Parameters

      • str: string

        The input string.

      Returns { [key: string]: number }

      An object where keys represent letters (lowercase) and values represent their counts.