Renvoie « true » si le deuxième paramètre est un préfixe du premier.
Chaîne
startWith(<parameters>)
Paramètre | Type |
---|---|
chaîne | chaîne |
préfixe | chaîne |
startWith(<string>,<string>)
Renvoie une valeur booléenne.
startWith("Hello World", "Hello")
Renvoie true.
startWith("Hello World", "World")
Renvoie false.