We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7f542 commit b736979Copy full SHA for b736979
src/utils/helper.ts
@@ -17,4 +17,5 @@ const STR_UNDEFINED = 'undefined'
17
// NOTE: Use function to guarantee it's re-evaluated between jsdom and node runtime for tests.
18
export const hasWindow = () => typeof window != STR_UNDEFINED
19
export const hasDocument = () => typeof document != STR_UNDEFINED
20
-export const hasRequestAnimationFrame = () => (hasWindow() && (typeof window['requestAnimationFrame'] != STR_UNDEFINED))
+export const hasRequestAnimationFrame = () =>
21
+ hasWindow() && typeof window['requestAnimationFrame'] != STR_UNDEFINED
0 commit comments