(obj: any)
| 12 | * Determine if the argument is shaped like a Promise |
| 13 | */ |
| 14 | export function isPromise<T = any>(obj: any): obj is Promise<T> { |
| 15 | // allow any Promise/A+ compliant thenable. |
| 16 | // It's up to the caller to ensure that obj.then conforms to the spec |
| 17 | return !!obj && typeof obj.then === 'function'; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Determine if the argument is a Subscribable |
no outgoing calls
no test coverage detected
searching dependent graphs…