MCPcopy Create free account
hub / github.com/ClearURLs/Addon / isThenable

Function isThenable

browser-polyfill.js:743–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741 * @returns {boolean} True if the value is thenable.
742 */
743 const isThenable = value => {
744 return value && typeof value === "object" && typeof value.then === "function";
745 };
746
747 /**
748 * Creates and returns a function which, when called, will resolve or reject

Callers 1

wrapAPIsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected