Function: isWorkerGlobalObject()
function isWorkerGlobalObject(value: Readonly<Expression>): boolean;
Defined in: _internal/worker-code-loading.ts:67
Check whether an expression is one of the common global objects used for worker-related APIs.
Parametersâ
valueâ
Readonly<Expression>
Expression to inspect.
Returnsâ
boolean
Whether the expression is window, self, or globalThis.