UNPKG

@naturalcycles/js-lib

Version:

Standard library for universal (browser + Node.js) javascript

15 lines (14 loc) 367 B
/** * Use it to detect SSR/Node.js environment. * * Will return `true` in Node.js. * Will return `false` in the Browser. */ export declare function isServerSide(): boolean; /** * Use it to detect Browser (not SSR/Node) environment. * * Will return `true` in the Browser. * Will return `false` in Node.js. */ export declare function isClientSide(): boolean;