Last reduces the set of matched elements to the last in the set. It returns a new Selection object, and an empty Selection object if the selection is empty.
()
| 25 | // It returns a new Selection object, and an empty Selection object if |
| 26 | // the selection is empty. |
| 27 | func (s *Selection) Last() *Selection { |
| 28 | return s.Eq(-1) |
| 29 | } |
| 30 | |
| 31 | // Eq reduces the set of matched elements to the one at the specified index. |
| 32 | // If a negative index is given, it counts backwards starting at the end of the |