index.mjs 151 Bytes Raw Blame History Permalink 1 2 3 export default function isPromise(obj) { return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; }