endWith

Returns true if the second parameter is a suffix of the first one.

Category

String

Function syntax

endWith(<parameters>)

Parameters

Parameter Type
string string
suffix string

Signature and returned type

endWith(<string>,<string>)

Returns a boolean.

Example

endWith("Hello World", "World")

Returns true.

endWith("Hello World", "Hello")

Returns false.

On this page

Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now