UNPKG

@zimic/interceptor

Version:

Next-gen TypeScript-first HTTP intercepting and mocking

8 lines (6 loc) 230 B
export function isServerSide() { return typeof process !== 'undefined' && typeof process.versions !== 'undefined'; } export function isClientSide() { return typeof window !== 'undefined' && typeof document !== 'undefined'; }