Skip to main content

isBrowser

Checks whether the user is running the app on a browser or under another type of environment. (node, for example).

API

const isBrowser: boolean;

Usage

import { isBrowser } from "@feedzai/js-utilities";

if (isBrowser) {
const title = document.querySelector("h1");
}