MatthewMueller/cheerio — pull request #188 by jeremy-dentel (2013-04-09 19:05:32+00:00)
Title: $.closest Implementation

Here's an implementation of $.closest(selector) to bring the API closer to jQuery. Uses a similar method to $.parents(), but returns an array of length 0 or 1 appropriately.

However, this _does not_ support a jQuery (Cheerio) object to check against like the jQuery api. Just a selector.