Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

endsWith

endsWith(String, String): String

Returns true or false depending on if a string ends with a provided substring.

Transform

        
     
1
2
3
4
5
6
7
%dw 2.0
output application/json
---
{
  a: "Mariano" endsWith "no",
  b: "Mariano" endsWith "to"
}
Output

        
     
1
2
3
4
{
  "a": true,
  "b": false
}