diff options
| author | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
|---|---|---|
| committer | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
| commit | bce557cc2dc767628bed6aac87301a1be7c5431b (patch) | |
| tree | b51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/@jet/environment/util/promise.js | |
init commit
Diffstat (limited to 'node_modules/@jet/environment/util/promise.js')
| -rw-r--r-- | node_modules/@jet/environment/util/promise.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/@jet/environment/util/promise.js b/node_modules/@jet/environment/util/promise.js new file mode 100644 index 0000000..355c291 --- /dev/null +++ b/node_modules/@jet/environment/util/promise.js @@ -0,0 +1,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
\ No newline at end of file |
