Static
Readonly
camelThe input string
The camelCase string
Static
Readonly
displayUtility wrapper for stringifyArray that handles empty arrays and displaying the number of truncated items
The array to display
The options to use
The displayed string
Static
Readonly
isCheck if a string is a valid URL
The input string
Whether the input is a valid URL
Static
Readonly
kebabConvert a string to kebab-case
The input string
The kebab-case string
Static
Readonly
pascalConvert a string to PascalCase
The input string
The PascalCase string
Static
Readonly
pluralizePluralize a string based on a count
The input string
The count
The pluralized string (e.g. 'apple' -> 'apples')
Static
Readonly
replaceReplace all available tags/placeholders in a string
The input string
A record of placeholders to replace, where the key is the placeholder and the value is the replacement
A string that has had all placeholders replaced
Static
Readonly
snakeConvert a string to snake_case
The input string
The snake_case string
Static
Readonly
splitSplit a string on uppercase chars and join them back together
The input string
The character to split on
The split string
Static
Readonly
stringifyTruncate an array of items into a string
The array to truncate
The options to use
The truncated string
Static
Readonly
titleConverts a string to Title Case
The input string
The Title Case string
Static
Readonly
truncateTruncate a string to a certain length
The input string
The maximum length
The suffix to append if the string is truncated
The truncated string
Convert a string to camelCase