#isEmpty
Returns true if the value is an array or string with no contents, false otherwise.
#isEmpty(value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | array | string |
The array or string to test. |
Returns
Section titled “Returns”boolean
Examples
Section titled “Examples”Empty array and string
Section titled “Empty array and string”{ "items": [], "text": "x"}{ "items": "#isEmpty($.items)", "text": "#isEmpty($.text)"}{ "items": true, "text": false}