method CompressTransformation.prototype.hasParentDomainRule
CompressTransformation.prototype.hasParentDomainRule(
hostname: string,
byHostname: Record<string, boolean>,
): boolean

Checks if any parent domain already has a blocking rule. Uses index-based iteration to avoid creating intermediate arrays.

Parameters

hostname: string
byHostname: Record<string, boolean>

Return Type

boolean

Usage

import { CompressTransformation } from ".";