module.exports = isPromise;

function isPromise(obj) {
  return obj && typeof obj.then === 'function';
}
module.exports = isPromise;

function isPromise(obj) {
  return obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}

Make the test a bit more strict
Make the test a bit more strict
