MCPcopy Create free account
hub / github.com/codrops/RainEffect / isThenable

Function isThenable

demo/js/index2.js:2677–2680  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

2675 return S != undefined ? S : C;
2676};
2677var isThenable = function(it){
2678 var then;
2679 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
2680};
2681var notify = function(record, isReject){
2682 if(record.n)return;
2683 record.n = true;

Callers 2

runFunction · 0.70
$resolveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected