JS Utils Kit - v0.5.1
    Preparing search index...

    Function isBrowser

    • Checks if the current runtime environment is a browser.

      This function helps detect whether code is executing in a web browser by confirming the existence of the global window and document objects.

      Returns boolean

      true if running in a browser, otherwise false.

      if (isBrowser()) {
      console.log('Running in a browser environment');
      }