Skip to content

Documentation / @ripl/core / matches

Function: matches()

matches(element, selector): boolean

Defined in: packages/core/src/core/query.ts:187

Tests whether an element matches a CSS-like selector.

Parameters

ParameterType
elementQueryable
selectorstring

Returns

boolean