- isNullOrEmpty
Returns true if the given string is null or is the empty string.Consider
normalizing your string ref
- nullToEmpty
Returns the given string if it is non-null; the empty string otherwise.
- emptyToNull
Returns the given string if it is nonempty; null otherwise.
- repeat
Returns a string consisting of a specific number of concatenated copies of an
input string. For exam
- padStart
Returns a string, of length at least minLength, consisting of string prepended
with as many copies o
- padEnd
Returns a string, of length at least minLength, consisting of string appended
with as many copies of
- validSurrogatePairAt
True when a valid surrogate pair starts at the given index in the given string.
Out-of-range indexes
- commonPrefix
Returns the longest string prefix such that a.toString().startsWith(prefix) &&,
taking care not to s
- lenientFormat
Returns the given template string with each occurrence of "%s" replaced with the
corresponding argum
- commonSuffix
Returns the longest string suffix such that a.toString().endsWith(suffix) &&,
taking care not to spl