Skip to content

String

Unofficial

Augments the built-in String interface.

Signature:

export interface String

Methods

MethodReturnsDescription
contains(target)booleanChecks if the string contains a specific substring.
endsWith(searchString, endPosition?)booleanChecks if the string ends with a specific substring.
format(args?)stringFormats a string using the indexed placeholders.
startsWith(searchString, position?)booleanChecks if the string starts with a specific substring.