import isFunction from './isFunction'; export default function isPromise(value: any): value is Promise { return !!value && isFunction(value.then); }