5 lines
125 B
JavaScript
5 lines
125 B
JavaScript
|
// Robust way to check if it's Node or browser
|
||
|
export const checkServer = () => {
|
||
|
return (typeof window === 'undefined')
|
||
|
}
|