9 lines
366 B
Plaintext
9 lines
366 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isPromise = isPromise;
|
|
function isPromise(object) {
|
|
const isObjectOrFunction = (typeof object === 'object' && object !== null) ||
|
|
typeof object === 'function';
|
|
return (isObjectOrFunction && typeof object.then === 'function');
|
|
}
|
|
//# sourceMappingURL=isPromise.js.map |