Library API
    Preparing search index...

    Function getContext

    • Determines the current JavaScript environment context. Useful for branching logic based on the runtime environment.

      Returns Context

      An object containing the global scope reference and the CONTEXT type enum

      const { type } = getContext();
      if (type === CONTEXT.Browser) { ... }