Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/runtime.ts>IS_BROWSER

The next-gen web framework.
Extremely Popular
Latest
variable IS_BROWSER
import { IS_BROWSER } from "https://deno.land/x/fresh@1.6.8/runtime.ts";

Returns true when the current runtime is the browser and false otherwise. This is used for guard runtime-dependent code. Shorthand for the following: typeof document !== "undefined"