Skip to content

Commit b736979

Browse files
huozhinevilm-lt
authored andcommitted
doc: comment helper (vercel#1757)
1 parent fd7f542 commit b736979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ const STR_UNDEFINED = 'undefined'
1717
// NOTE: Use function to guarantee it's re-evaluated between jsdom and node runtime for tests.
1818
export const hasWindow = () => typeof window != STR_UNDEFINED
1919
export const hasDocument = () => typeof document != STR_UNDEFINED
20-
export const hasRequestAnimationFrame = () => (hasWindow() && (typeof window['requestAnimationFrame'] != STR_UNDEFINED))
20+
export const hasRequestAnimationFrame = () =>
21+
hasWindow() && typeof window['requestAnimationFrame'] != STR_UNDEFINED

0 commit comments

Comments
 (0)