(v: any)
| 46 | } |
| 47 | |
| 48 | export function toNumber(v: any): number | null { |
| 49 | if (isEmpty(v)) return null; |
| 50 | if (isNaN(Number(v))) return null; |
| 51 | return Number(v); |
| 52 | } |
| 53 | |
| 54 | export function toBoolean(v: any): boolean | null { |
| 55 | if (isEmpty(v)) return null; |
no test coverage detected