MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isThenable

Function isThenable

lib/web/polyfill.js:1291–1295  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

1289 && Promise.resolve(test = new Promise(function(){})) == test
1290 || function(asap, RECORD){
1291 function isThenable(it){
1292 var then;
1293 if(isObject(it))then = it.then;
1294 return isFunction(then) ? then : false;
1295 }
1296 function handledRejectionOrHasOnRejected(promise){
1297 var record = promise[RECORD]
1298 , chain = record.c

Callers 2

notifyFunction · 0.85
resolveFunction · 0.85

Calls 2

isObjectFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected