9 lines
390 B
JavaScript
9 lines
390 B
JavaScript
"use strict";
|
|
// https://github.com/TylorS/typed-is-promise/blob/abf1514e1b6961adfc75765476b0debb96b2c3ae/src/index.ts
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isPromise = void 0;
|
|
function isPromise(p) {
|
|
return p !== null && typeof p === 'object' && typeof p.then === 'function';
|
|
}
|
|
exports.isPromise = isPromise;
|
|
//# sourceMappingURL=is-promise.util.js.map
|