(value, test)
| 1838 | } |
| 1839 | ts.isNumber = isNumber; |
| 1840 | function tryCast(value, test) { |
| 1841 | return value !== undefined && test(value) ? value : undefined; |
| 1842 | } |
| 1843 | ts.tryCast = tryCast; |
| 1844 | function cast(value, test) { |
| 1845 | if (value !== undefined && test(value)) |