(input: unknown)
| 1372 | * @since 2.0.0 |
| 1373 | */ |
| 1374 | export function isPromise(input: unknown): input is Promise<unknown> { |
| 1375 | return hasProperty(input, "then") && "catch" in input && isFunction(input.then) && isFunction(input.catch) |
| 1376 | } |
| 1377 | |
| 1378 | /** |
| 1379 | * Checks whether a value is `PromiseLike` (has a `then` method). |
nothing calls this directly
no test coverage detected