#endsWith
Returns true if a string ends with the provided substring, false otherwise.
#endsWith(value, suffix)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to test. |
suffix |
string |
The expected suffix. |
Returns
Section titled “Returns”boolean
Examples
Section titled “Examples”Check a suffix
Section titled “Check a suffix”{ "file": "report.pdf"}{ "result": "#endsWith($.file, '.pdf')"}{ "result": true}