(input: unknown)
| 1324 | * @since 2.0.0 |
| 1325 | */ |
| 1326 | export function isPromise(input: unknown): input is Promise<unknown> { |
| 1327 | return hasProperty(input, "then") && "catch" in input && isFunction(input.then) && isFunction(input.catch) |
| 1328 | } |
| 1329 | |
| 1330 | /** |
| 1331 | * Checks whether a value is `PromiseLike` (has a `then` method). |
nothing calls this directly
no test coverage detected