Skip to content

SearchMatcherGuards.comparison method

SearchMatcherGuards › comparison

Unofficial

Checks the exact prototype of a comparison matcher.

Signature:

comparison(matcher: SearchMatcher): matcher is SearchComparisonMatcher

Parameters:

ParameterTypeDescription
matcherSearchMatcherThe node to inspect.

Returns: matcher is SearchComparisonMatcher — Whether the node has the current app's comparison prototype.