code: function reject(promise, reason) {
      if (promise.state !== PENDING) return;
  
      promise.reason = reason;
      promise.state = REJECTED;
  
      return resolve(promise);
    }
docs: Reject a promise for the given `reason`. Returns the promise.