UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

8 lines (7 loc) 302 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPromise = isPromise; const isCallable_js_1 = require("./isCallable.js"); function isPromise(val) { return typeof val === 'object' && val !== null && 'then' in val && (0, isCallable_js_1.isCallable)(val.then); }