diff --git a/index.js b/index.js index 2d3c5656..978b8f4e 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const perf = typeof performance === 'object' && performance && typeof performance.now === 'function' ? performance : Date -const hasAbortController = typeof AbortController !== undefined +const hasAbortController = typeof AbortController !== 'undefined' /* istanbul ignore next - minimal backwards compatibility polyfill */ const AC = hasAbortController ? AbortController : Object.assign(