Files
SnowLuma/.pnpm-store/v11/files/41/a77f2a992c3c634132176954cd31091ac7f46fc80145733c8c0c5bc9a5ceff0cf0079420df30bbaeebb4f598530bfee15947c3e33eccd8538a1f5e041ae7d2
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

7 lines
201 B
Plaintext

module.exports = isPromise;
module.exports.default = isPromise;
function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}