UNPKG

@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.

11 lines 299 B
/** * Check if thenable * (instanceof Promise doesn't respect realms) */ export var isThenable = function (value) { return typeof value === 'object' && value !== null && 'then' in value && typeof value.then === 'function'; }; //# sourceMappingURL=is-thenable.js.map