Skip to main content

isClient

A function that checks whether the JavaScript runtime environment is a client (browser).

Returns true when in a client environment.


Code

🔗 View source code


Interface

typescript
function isClient(): boolean

Usage

typescript
import { isClient } from '@modern-kit/utils';

if (isClient()) {
/* Browser environment is guaranteed */
}