Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
15
export
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
promise_util_spec.ts
File · 0.90
all
Method · 0.70
Calls
1
isFunction
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…