startsWith

startsWith

> Functions

Checks if the string string starts with the string prefix.

Parameters
Return
Examples

startsWith("Hello", "Hell") // true startsWith("Hello", "ello") // false

See as well

endsWith