Skip to main content

isClient

A function to check if the JavaScript runtime environment is a Client(browser).

If it returns true, it is a client environment.


Interface

const isClient: () => boolean

Usage

import { isClient } from '@devgrace/utils';

if (isClient()) {
/* client environment */
}