(ex: SearchExpression)
| 31 | } |
| 32 | |
| 33 | function isStringOperation(ex: SearchExpression) { |
| 34 | switch (ex.operator) { |
| 35 | case 'contains': |
| 36 | case '!contains': |
| 37 | case 'starts': |
| 38 | case '!starts': |
| 39 | return true; |
| 40 | } |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | function isnullorEmpty(value: any) { |
| 45 | if (value == null) return true; //double equal sign to also catch undefined |