CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
isBrowser.d.ts18 linesDownload Raw Back to predicate
1/**2 * Checks if the current environment is a browser.3 *4 * This function checks for the existence of the `window.document` property,5 * which only exists in browser environments.6 *7 * @returns {boolean} `true` if the current environment is a browser, otherwise `false`.8 *9 * @example10 * if (isBrowser()) {11 *   console.log("This is running in a browser");12 *   document.getElementById('app').innerHTML = 'Hello World';13 * }14 */15declare function isBrowser(): boolean;16 17export { isBrowser };18 
basant307/AI_Governance_Project · CoolFace