PP.startsWith

Syntax

startsWith(str: String, refStr: String);

Parameters

str. Base string.

refStr. Substring.

Description

The startsWith method determines whether string starts with the specified substring.

Comments

This method returns True if the string starts with the specified substring, otherwise it returns False.

Example

The example of use is given in the with description of the PP.endsWith static method.

See also:

PP