UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

7 lines (6 loc) 216 B
// Get the direct children of all of the nodes with an optional filter u.prototype.children = function (selector) { return this.map(function (node) { return this.slice(node.children); }).filter(selector); };