UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

4 lines (3 loc) • 151 B
export default function isPromise(obj) { return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; }