MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isAnyBluebirdPromise

Function isAnyBluebirdPromise

static/word2md/mammoth.browser.js:8829–8835  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

8827
8828var hasProp = {}.hasOwnProperty;
8829function isAnyBluebirdPromise(obj) {
8830 try {
8831 return hasProp.call(obj, "_promise0");
8832 } catch (e) {
8833 return false;
8834 }
8835}
8836
8837function doThenable(x, then, context) {
8838 var promise = new Promise(INTERNAL);

Callers 1

tryConvertToPromiseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected