MCPcopy Create free account
hub / github.com/denoland/std / isPromiseLike

Function isPromiseLike

async/unstable_throttle.ts:170–172  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

168}
169
170function isPromiseLike(obj: unknown): obj is PromiseLike<unknown> {
171 return typeof (obj as PromiseLike<unknown>)?.then === "function";
172}

Callers 1

throttleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected