Skip to content

text

Module

Contains functions and filters to work with texts.

Exports

asLowerCase Makes all characters in text lower case
asUpperCase Makes all characters in text upper case
explode Splits a text into an iterator of texts based on a given separator pattern
implode Joins an iterator of texts into a single text using a separator
indexOf Returns the index of the first occurrence of the pattern in a texgt
lastIndexOf Returns the index of the last occurrence of the pattern in a texgt
replace Replaces matching substring in a text.
slice Extracts a substring from an input text.