Strings
The Strings module provides a number of convenience functions to check, parse, and manipulate JavaScript strings.
camelCase() |
Converts a string to camelCase. |
capitalize() |
Returns a new string with the first letter capitalized. |
isEmpty() |
Checks if a string is empty. |
isUrl() |
Checks if a string is a valid URL. |
isWhitespace() |
Checks if a string is empty or contains only whitespace. |
pascalCase() |
Converts a string to PascalCase. |
prefix() |
Adds a prefix to a string if it does not yet exist. |
skip() |
Skips the first |
skipLast() |
Skips the last |
skipUntil() |
Returns all characters in the string after the first occurrence of the substring, including the substring itself. |
skipUntilAfter() |
Returns all characters in the string after the first occurrence of the substring. |
skipUntilAfterLast() |
Returns all characters in the string after the last occurrence of the substring. |
skipUntilLast() |
Returns all characters in the string after the last occurrence of the substring, including the substring itself. |
splitAt() |
Splits the string at the given indices. |
strip() |
Returns a new string with all the specified tokens removed. |
stripEnd() |
Returns a new string with all the specified tokens removed from the end of the string. |
stripStart() |
Returns a new string with all the specified tokens removed from the beginning of the string. |
suffix() |
Adds a suffix to a string if it does not yet exist. |
take() |
Returns the first |
takeLast() |
Returns the last |
takeUntil() |
Returns all characters in the string before the first occurrence of the substring. |
takeUntilAfter() |
Returns all characters in the string before the first occurrence of the substring, including the substring itself. |
takeUntilAfterLast() |
Returns all characters in the string before the last occurrence of the substring, including the substring itself. |
takeUntilLast() |
Returns all characters in the string before the last occurrence of the substring. |
uncapitalize() |
Returns a new string with the first letter lowercased. |