dist/index.js
function isPromise (input) {
  if (input) {
    const isPromise = isDefined(Promise) && input instanceof Promise;
    const isThenable = input.then && typeof input.then === 'function';
    return !!(isPromise || isThenable)
  } else {
    return false
  }
}
function isPromise (input) {
  if (input) {
    const isPromise = isDefined(Promise) && input instanceof Promise;
    const isThenable = input.then && typeof input.then === 'function';
    return !!(isPromise || isThenable)
  } else {
    return false
  }
}
function isPromise ( input ) { if ( input ) { const isPromise = isDefined ( Promise ) && input instanceof Promise ; const isThenable = input . then && typeof input . then === 'function' ; return ! ! ( isPromise || isThenable ) } else { return false } }
Returns true if the input is a Promise.
@param {*} - the input to test
@returns {boolean}
@static
Returns true if the input is a Promise .