(val: any)
| 51 | } |
| 52 | |
| 53 | function isDate(val: any) { |
| 54 | if (val instanceof Date) return true |
| 55 | return ( |
| 56 | typeof val.toDateString === 'function' && |
| 57 | typeof val.getDate === 'function' && |
| 58 | typeof val.setDate === 'function' |
| 59 | ) |
| 60 | } |
| 61 | |
| 62 | export function kindOf(val: any) { |
| 63 | let typeOfVal: string = typeof val |