Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/runtime.ts>IS_BROWSER

The next-gen web framework.
Extremely Popular
Go to Latest
variable IS_BROWSER
import { IS_BROWSER } from "https://deno.land/x/fresh@1.7.1/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"