Skip to main content

startsWith

Tests to see if the first string starts with the specified prefix. If either the string or the prefix are null, it returns false

Syntax

boolean = startsWith(str, prefix)

Example

print startsWith("Patent", "Pat")
true