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