2020-09-12 21:47:05 +08:00

2 lines
56 B
TypeScript

export const inBrowser = typeof window !== 'undefined';