MCPcopy Index your code
hub / github.com/angular/angular / isThenable

Function isThenable

packages/upgrade/src/common/src/promise_util.ts:15–17  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

13}
14
15export function isThenable<T>(obj: unknown): obj is Thenable<T> {
16 return !!obj && isFunction((obj as any).then);
17}
18
19/**
20 * Synchronous, promise-like object.

Callers 2

allMethod · 0.70

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…