3 const isPromise = input => (
4 input instanceof Promise ||
7 typeof input === 'object' &&
8 typeof input.then === 'function' &&
9 typeof input.catch === 'function'
13 module.exports = isPromise;
14 // TODO: Remove this for the next major release
15 module.exports.default = isPromise;