Browser type enumeration for identifying the browser environment.
This enum is used to identify the specific browser type, which is useful for browser-specific behavior or error messages.
const browserType = detectBrowserType();if (browserType === BrowserType.CHROME) { console.log('Running in Chrome');} Copy
const browserType = detectBrowserType();if (browserType === BrowserType.CHROME) { console.log('Running in Chrome');}
Google Chrome browser
Microsoft Edge browser
Opera browser
Unknown or unsupported browser
Browser type enumeration for identifying the browser environment.
This enum is used to identify the specific browser type, which is useful for browser-specific behavior or error messages.
Example