Skip to content

inBrowser ​

Determine whether the code is running in a browser environment.

Usage ​

ts
import { inBrowser } from 'rattail'

inBrowser() // return true in browser

Return ​

Type
boolean