@decaf-ts/utils
Version:
module management utils for decaf-ts
8 lines (7 loc) • 343 B
TypeScript
/**
* @function isBrowser
* @description Determines if the current environment is a browser by checking the prototype chain of the global object.
* @summary Checks if the code is running in a browser environment.
* @returns {boolean} True if the environment is a browser, false otherwise.
*/
export declare function isBrowser(): boolean;