.map()

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.

.parentsUntil()

Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.