IsFunction checks the current matched set of elements against a predicate and returns true if at least one of these elements matches.
(f func(int, *Selection) bool)
| 24 | // IsFunction checks the current matched set of elements against a predicate and |
| 25 | // returns true if at least one of these elements matches. |
| 26 | func (s *Selection) IsFunction(f func(int, *Selection) bool) bool { |
| 27 | return s.FilterFunction(f).Length() > 0 |
| 28 | } |
| 29 | |
| 30 | // IsSelection checks the current matched set of elements against a Selection object |
| 31 | // and returns true if at least one of these elements matches. |