@segment/analytics-next
Version:
Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.
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