Skip to content

Function: getBrowser() ​

ts
function getBrowser(): string;

Returns the name of the current browser, or 'Unknown' outside a browser environment.

Returns ​

string

Example ​

ts
getBrowser() // => 'Chrome'

Since ​

1.0.0

Released under the MIT License.