mirror of https://github.com/buster-so/buster.git
8 lines
147 B
TypeScript
8 lines
147 B
TypeScript
|
export const isBrowser = !!(
|
||
|
typeof window !== 'undefined' &&
|
||
|
window.document &&
|
||
|
window.document.createElement
|
||
|
);
|
||
|
|
||
|
export default isBrowser;
|