Hooks
Functions
isBrowser
A boolean value to check if the code is running in a browser environment.
Example
import isBrowser from '@/utils/isBrowser'
console.log(isBrowser)
// output: true in browser, false in server
A boolean value to check if the code is running in a browser environment.
import isBrowser from '@/utils/isBrowser'
console.log(isBrowser)
// output: true in browser, false in server