matches

fun matches(filter: Any?, context: ExpressionContext): Boolean

Evaluates a filter to a boolean, using JS truthiness: a feature is kept when the result is truthy. A filter that fails to evaluate drops the feature rather than admitting everything.