Hiyve Components - v1.0.0
    Preparing search index...
    • Returns true when the runtime exposes a WebTransport global. Safe to call in any environment — returns false outside the browser (SSR, tests without jsdom).

      Returns boolean

      Uses the in operator rather than typeof === 'function' because some mobile browsers expose the constructor in a way that typeof doesn't classify as 'function' (lazy-bound globals, feature flags), even though new WebTransport(...) works correctly. The in operator matches what 'WebTransport' in window reports — the same test most caniuse-style probes and bookmarklets use.