@ironarachne/words
    Preparing search index...

    Function swapCase

    • This function swaps the casing of each letter in a word. Iterates by code point so multi-byte characters (e.g. emoji) are preserved.

      Parameters

      • word: string

        The word to convert.

      Returns string

      The converted word.