JavaScript Fetch: Abort

2021 VietMX 1

As we know, fetch returns a promise. And JavaScript generally has no concept of “aborting” a promise. So how can we cancel an ongoing fetch? E.g. if the […]