For customers Find a partner For partners Partner program Partner resources Partner calendar Become a partner Partner login
For customers Find a partner For partners Partner program Partner resources Partner calendar Become a partner Partner login
endsWith endsWith(text: String, suffix: String): Boolean Returns true if a string ends with a provided substring, false if not. Parameters Name Description text The input string (a String). suffix The suffix string to find at the end of the input string. Example This example finds "no" (but not "to") at the end of "Mariano". Source %dw 2.0 output application/json --- [ "Mariano" endsWith "no", "Mariano" endsWith "to" ] Output [ true, false ] endsWith(text: Null, suffix: Any): false Helper function that enables endsWith to work with a null value. Introduced in DataWeave version 2.4.0.