• Utility method that will adjust the casing of a word based on the options provided. The options object can have two properties:

    • capitalizeFirstLetterOnly: If true, only the first letter of the word will be capitalized, and the rest will be lower case.
    • capitalizeEntireWord: If true, the entire word will be capitalized.

    Parameters

    • word: string
    • Optional options: {
          capitalizeEntireWord?: boolean;
          capitalizeFirstLetterOnly?: boolean;
          forceRestOfWordLowerCase?: boolean;
      }
      • Optional capitalizeEntireWord?: boolean
      • Optional capitalizeFirstLetterOnly?: boolean
      • Optional forceRestOfWordLowerCase?: boolean

    Returns string