const abortController = new window.AbortController();
const abortSignal = this.abortController.signal;

(...)

fetch(url, {
  method: 'GET',
  signal: abortSignal
}).then(response => (...))

// This will abort the above fetch request if it's still being processed
abortController.abort();

Note that as of today, AbortController is not supported by all major browsers