2 lines
108 B
JavaScript
2 lines
108 B
JavaScript
const isBrowser = () => ![typeof window, typeof document].includes('undefined');
|
|
module.exports = isBrowser; |