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

x/live/deps.ts>IS_BROWSER

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
variable IS_BROWSER
import { IS_BROWSER } from "https://deno.land/x/live@1.57.22/deps.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"