code: function resolve(promiseOrValue) {
              var promise;
  
              if (promiseOrValue instanceof Promise) {
                  // It's a well.js promise, so we trust it
                  promise = promiseOrValue;
  
              } else if (isPromiseLike(promiseOrValue)) {
                  // Assimilate foreign promises
                  promise = coerce(promiseOrValue);
              } else {
                  // It's a value, create a fulfilled promise for it.
                  promise = fulfilled(promiseOrValue);
              }
  
              return promise;
          }
docs: Returns promiseOrValue if promiseOrValue is a {@link Promise}, a new Promise if
  promiseOrValue is a foreign promise, or a new, already-fulfilled {@link Promise}
  whose value is promiseOrValue if promiseOrValue is an immediate value.
  
  @param {*} promiseOrValue
  @returns {Promise} Guaranteed to return a trusted Promise.  If promiseOrValue
  is trusted, returns promiseOrValue, otherwise, returns a new, already-resolved
  well.js promise whose resolution value is:
  * the resolution value of promiseOrValue if it's a foreign promise, or
  * promiseOrValue if it's a value