MCPcopy Index your code
hub / github.com/deployd/deployd / isPromise

Function isPromise

lib/script.js:190–194  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

188}
189
190function isPromise(obj) {
191 //maybe not the best of all checks but at least it's compliant to Promises/A+
192 //see https://promisesaplus.com
193 return obj !== null && typeof obj === 'object' && (typeof obj.then === 'function' || isPromise(obj.promise));
194}
195
196function wrapPromise(promiseable, sandbox, events, done, sandboxRoot) {
197 var realPromise = promiseable;

Callers 2

wrapPromiseFunction · 0.85
wrapAsyncFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected