MCPcopy Index your code
hub / github.com/microsoft/SandDance / isPromise

Function isPromise

docs/app/js/sanddance-app.js:55285–55287  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

55283 return isObject(x) && x.constructor === ({}).constructor;
55284};
55285var isPromise = function isPromise(x) {
55286 return isObject(x) && isFunction(x.then);
55287};
55288var isIterable = function isIterable(x) {
55289 return x && typeof x[Symbol.iterator] === "function";
55290};

Callers

nothing calls this directly

Calls 2

isObjectFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected