Case extension
Extension bundling all functionalities related to case manipulation
- on
Methods
-
camelCase(
{bool preserveAcronym = false}) → String - Changes a string into camelCase
-
capitalize(
{bool capitalizeAll = false}) → String - Capitalizes the first character of the string
-
decapitalize(
{bool decapitalizeAll = false}) → String - Decapitalizes the first character of the string
-
kebabCase(
) → String - Converts a string to kebab-case
-
lowerCase(
) → String - Converts the whole string to lowercase
-
snakeCase(
) → String - Converts string to snake_case
-
swapCase(
) → String - Converts uppercase characters of a string to lowercase and vice versa
-
titleCase(
) → String - Capitalizes the first letter of each word
-
upperCase(
) → String - Converts the whole string to uppercase