(value: any)
| 5 | import { Search, SearchExpression, SearchExpressionGroup } from './types'; |
| 6 | |
| 7 | function valueToBoolean(value: any) { |
| 8 | if (typeof value === 'string') { |
| 9 | switch (value.toLowerCase()) { |
| 10 | case 'true': |
| 11 | return true; |
| 12 | case 'false': |
| 13 | return false; |
| 14 | } |
| 15 | } |
| 16 | return !!value; |
| 17 | } |
| 18 | |
| 19 | function valueToString(value: any) { |
| 20 | if (value == null) { |
no outgoing calls
no test coverage detected