8 minutes read

This document is a draft version and subject to further review and revision. Please refrain from distributing or relying on its contents as final.

UI ElementDescription
capitalizeConvert the first character of text to upper case and the remaining to lower case
deburrDeburr string by converting Latin-1 supplementary letters to basic Latin letters and removing combining diacritical marks
ends withCheck if a string ends with the given target string
escapeRegExpEscape the RegExp special characters in the text
lowerCaseConvert string, as space-separated words, to lowercase
padPad string on the left and right sides if it's shorter than the length. Padding characters are truncated if they can't be evenly divided by the length
padEndPad string on the right side if it's shorter than the length. Padding characters are truncated if they exceed the length
padStartPad string on the left side if it's shorter than length. Padding characters are truncated if they exceed length
repeatRepeat the given string n times
replaceReplace matches for pattern in string with replacement
snakeCaseConvert string to snake case
splitSplit string by separator
startsWithCheck if string starts with the given target string
toLowerConvert string, as a whole, to lower case
toUpperConvert string, as a whole, to upper case
trimRemove leading and trailing whitespace or specified characters from the string
trimEndRemove trailing whitespace or specified characters from a string
trimStartRemove leading whitespace or specified characters from string
truncateTruncate string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to ...
wordsSplit string into an array of its words
toStringConvert `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of `-0` is preserved.
startsWithCheck if string starts with the given target string
substringsExtract a substring from the given string by using the index values.
regexReplaceReplace matches for `pattern` in `input` string with `replacement`.
regexSearchReturn first index of match for `pattern` in `input` string. Return `-1` if there is no match.
stringIndexOfReturn the index of the first occurrence of the specified substring at a position greater than or equal to position, which defaults to 0.
jsonStringifyConvert the input value to a JSON string
getUrlQueryParameter
Return the first value associated with the given search parameter in a URL.
left
Return a specified number of characters from the beginning of a string
removeCharacters
Remove a list of characters from a string

Convert the JSON string value to an object
removeNonAlphaNumericCharacters
Remove non-alphanumeric characters (excluding letters and digits) from a string
removeNonAlphaNumericCharactersFromEdges
Remove non-alphanumeric characters (excluding letters and digits) from the edges of a string
removeNonNumericCharacters
Remove non-numeric characters (excluding digits) from a string
replaceMultipleCharacters
Replace multiple characters in a string according to a given mapping
right
Return a specified number of characters from the end of a string
stringLength
Calculate the length of a string
textAfter
Extract the text after a specified substring in a string
textBefore
Extract the text before a specified substring in a string
toSingleSpace
Convert multiple spaces to a single space for a string
toTitleCase
Convert a string to proper case (title case)