(wat: any)
| 159 | * @param wat A value to be checked. |
| 160 | */ |
| 161 | export function isThenable(wat: any): wat is PromiseLike<any> { |
| 162 | // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
| 163 | return Boolean(wat?.then && typeof wat.then === 'function'); |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Checks whether given value's type is a React SyntheticEvent |
no outgoing calls
no test coverage detected