UNPKG

istesequi

Version:

Lightweight and intuitive javascript library

13 lines (11 loc) 234 B
/** * .parent() * * Travel the matched elements one node up * @return this Umbrella object */ u.prototype.parent = function(selector) { return this.join(function(node){ return node.parentNode; }).filter(selector); };