index.js
function isPromise (val, Promize) {
  return val instanceof Promize || (
    val !== null &&
    typeof val === 'object' &&
    typeof val.then === 'function' &&
    typeof val.catch === 'function'
  )
}
function isPromise (val, Promize) {
  return val instanceof Promize || (
    val !== null &&
    typeof val === 'object' &&
    typeof val.then === 'function' &&
    typeof val.catch === 'function'
  )
}
function isPromise ( val , Promize ) { return val instanceof Promize || ( val !== null && typeof val === 'object' && typeof val . then === 'function' && typeof val . catch === 'function' ) }
/* istanbul ignore next
/ * istanbul ignore next