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.
Returns
truewhen the runtime exposes aWebTransportglobal. Safe to call in any environment — returnsfalseoutside the browser (SSR, tests without jsdom).