UNPKG
@kickscondor/umbrellajs
Version:
latest (3.1.2)
3.1.2
3.1.1
Lightweight and intuitive javascript library
umbrellajs.com
kickscondor/umbrella
@kickscondor/umbrellajs
/
src
/
plugins
/
children
/
children.js
7 lines
(6 loc)
•
216 B
JavaScript
View Raw
1
2
3
4
5
6
7
// 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); };