validation-query
Version:
**Validation Query** Validation Query is a utility library providing a range of functions for managing query strings in web applications. It offers features for validating, decoding, and parsing query string parameters, as well as inspecting the current e
13 lines (11 loc) • 319 B
text/typescript
/**
* Determines whether the current environment is a client-side (browser) environment.
*
* @returns `true` if the current environment is a client-side (browser) environment, `false` otherwise.
*/
export function isClient(): boolean {
if (typeof window !== "undefined") {
return true;
}
return false;
}