()
| 6 | } |
| 7 | |
| 8 | export function isBrowserContext () { |
| 9 | // Node 22 exposes a global navigator, so use window/document instead. |
| 10 | if ( typeof window === 'undefined' ) return false |
| 11 | |
| 12 | if ( typeof document === 'undefined' ) return false |
| 13 | |
| 14 | return true |
| 15 | } |
| 16 | |
| 17 | export function hasProcesGlobal () { |
| 18 | if ( typeof process === 'undefined' ) return false |
no outgoing calls
no test coverage detected