UNPKG

@namchee/decora

Version:

Useful ECMAScript-compliant decorators to enhance JS (specifically, TypeScript) development experience

7 lines (5 loc) 207 B
export const isNode = typeof process !== undefined && process.versions != null && process.versions.node != null; export const isBrowser = typeof document !== undefined && typeof window !== undefined;