Skip to main content

Function: selectorHasAttribute()

function selectorHasAttribute(
selectorContainer: Readonly<SelectorContainer>,
predicate: (attributeNode: Readonly<Attribute>) => boolean
): boolean;

Defined in: _internal/selector-parser-utils.ts:332

Check whether a selector has a matching attribute in any scope.

Parametersโ€‹

selectorContainerโ€‹

Readonly<SelectorContainer>

predicateโ€‹

(attributeNode: Readonly<Attribute>) => boolean

Returnsโ€‹

boolean