MCPcopy
hub / github.com/QwikDev/qwik / isPromise

Function isPromise

packages/qwik/src/qwikloader.ts:48–48  ·  view source on GitHub ↗
(promise: Promise<any>)

Source from the content-addressed store, hash-verified

46};
47
48const isPromise = (promise: Promise<any>) => promise && typeof promise.then === 'function';
49
50const broadcast = (infix: string, ev: Event, type = ev.type) => {
51 querySelectorAll('[on' + infix + '\\:' + type + ']').forEach((el) => {

Callers 2

dispatchFunction · 0.70
processDocumentEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…