Filter reduces the set of matched elements to those that match the selector string. It returns a new Selection object for this subset of matching elements.
(selector string)
| 5 | // Filter reduces the set of matched elements to those that match the selector string. |
| 6 | // It returns a new Selection object for this subset of matching elements. |
| 7 | func (s *Selection) Filter(selector string) *Selection { |
| 8 | return s.FilterMatcher(compileMatcher(selector)) |
| 9 | } |
| 10 | |
| 11 | // FilterMatcher reduces the set of matched elements to those that match |
| 12 | // the given matcher. It returns a new Selection object for this subset |
nothing calls this directly
no test coverage detected