Logos DX
    Preparing search index...

    Function isBrowser

    • Checks if the current environment is a browser.

      Tests for the presence of window and window.document objects.

      Returns boolean

      true if running in a browser environment

      if (isBrowser()) {
      // Safe to use DOM APIs
      document.querySelector('#app');
      }