UNPKG

ullamlaboriosam

Version:
7 lines (6 loc) 176 B
// Travel the matched elements one node up u.prototype.parent = function (selector) { return this.map(function (node) { return node.parentNode; }).filter(selector); };