Strings
String manipulation and search functions.
contains
Test if a string contains a substring.
contains(s, sub) → true if s contains sub
endswith
Test if a string ends with a suffix.
endswith(s, suffix) → true if s ends with suffix
includes
Test if an array contains a value, or a string contains a substring.
includes(collection, val) → true if the collection contains val
join
Join an array of strings with a delimiter.
join(arr, delim) → Joined string
lowercase
Convert string to lowercase.
lowercase(s) → Lowercased string
replace
Replace occurrences of a substring.
replace(s, old, new) → String with replacements applied
split
Split a string by a delimiter.
split(s, delim) → Array of substrings
startswith
Test if a string starts with a prefix.
startswith(s, prefix) → true if s starts with prefix
trim
Remove leading and trailing whitespace.
trim(s) → Trimmed string
uppercase
Convert string to uppercase.
uppercase(s) → Uppercased string