summaryrefslogtreecommitdiff
path: root/node_modules/@jet/environment/util/promise.js
blob: 355c2919883299646b03f1c1539f679b7401bbd2 (plain)
1
2
3
4
5
6
7
8
9
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPromise = void 0;
/** Whether the given object is a promise. */
function isPromise(obj) {
    return obj !== null && typeof obj === "object" && typeof obj.then === "function";
}
exports.isPromise = isPromise;
//# sourceMappingURL=promise.js.map