Capitalizes the first letter of a string and leaves the rest as is.
The string to modify.
The provided string with the first character capitalized.
Capitalizes the first letter of a string and changes the rest to lowercase.
The string to modify.
The provided string with the first character capitalized and the rest in lowercase.
Converts a supplied string to a boolean value.
The string to convert.
True if the string was a true value, otherwise false.
Converts a supplied string to a string using camel casing.
The string to convert.
The provided string converted to camel casing.
Converts a string to a Date.
The string to convert.
A Date value if the string is convertable, otherwise null.
Converts a supplied string to a string in all lowercase and with any whitespace removed. If a non-string
value is provided, an empty string is returned.
The string to convert.
The provided string converted to lowercase and with whitespaces completely removed.
Converts a string to a number value.
The string to convert.
A number value if the string is convertable, otherwise null.
Converts a supplied string to a string using snake casing.
The string to convert.
The provided string converted to snake casing.
Wraps a provided string in double quotes.
The string to wrap in double quotes.
The provided string wrapped in double quotes.
Checks if a provided string is empty or not.
The string to check.
True if the string is empty, otherwise returns true.
Checks if two provided strings are equal or not.
The first string to check.
The second string to check.
True if the strings are equal, otherwise returns false.
Checks if a string is contained inside an array of strings.
The string to check for.
The array of strings to check.
True if the string is in the array, otherwise returns false.
Checks if two provided strings are not equal.
The first string to check.
The second string to check.
True if the strings aren't equal, otherwise returns true.
Checks if a string is not contained inside an array of strings.
The string to check for.
The array of strings to check.
True if the string is not in the array, otherwise returns false.
Checks if a provided string is set or not.
The string to check.
True if the string is set, otherwise returns false.
Wraps a provided string in single quotes.
The string to wrap in double quotes.
The provided string wrapped in single quotes.
Generated using TypeDoc
Utility class containing a bunch of helper methods for commonly used string interactions and other methods as
shortcuts