#startsWith
Returns true if a string starts with the provided substring, false otherwise.
#startsWith(value, prefix)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to test. |
prefix |
string |
The expected prefix. |
Returns
Section titled “Returns”boolean
Examples
Section titled “Examples”Check a prefix
Section titled “Check a prefix”{ "id": "ORD-123"}{ "result": "#startsWith($.id, 'ORD-')"}{ "result": true}