MCPcopy Create free account
hub / github.com/cujojs/poly / isPromise

Function isPromise

test/curl.js:176–178  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

174 }
175
176 function isPromise (o) {
177 return o instanceof Promise;
178 }
179
180 function when (promiseOrValue, callback, errback, progback) {
181 // we can't just sniff for then(). if we do, resources that have a

Callers 4

whenFunction · 0.85
localRequireFunction · 0.85
getDepFunction · 0.85
_defineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected