@segment/analytics-core
Version:
This package represents core 'shared' functionality that is shared by analytics packages. This is not designed to be used directly, but internal to analytics-node and analytics-browser.
15 lines • 431 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isThenable = void 0;
/**
* Check if thenable
* (instanceof Promise doesn't respect realms)
*/
var isThenable = function (value) {
return typeof value === 'object' &&
value !== null &&
'then' in value &&
typeof value.then === 'function';
};
exports.isThenable = isThenable;
//# sourceMappingURL=is-thenable.js.map