docs: 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;
          }