@bodil/dom
System
Light
Dark
Search…
Preparing search index...
dom
findDescendants
Function findDescendants
findDescendants
<
T
extends
Element
>
(
root
:
Element
|
DocumentFragment
|
null
,
predicate
:
(
child
:
Element
)
=>
child
is
T
,
)
:
IteratorObject
<
T
>
Return all descendants of
root
which match the
predicate
function.
Type Parameters
T
extends
Element
Parameters
root
:
Element
|
DocumentFragment
|
null
predicate
:
(
child
:
Element
)
=>
child
is
T
Returns
IteratorObject
<
T
>
findDescendants
(
root
:
Element
|
DocumentFragment
|
null
,
predicate
:
(
child
:
Element
)
=>
boolean
,
)
:
IteratorObject
<
Element
>
Return all descendants of
root
which match the
predicate
function.
Parameters
root
:
Element
|
DocumentFragment
|
null
predicate
:
(
child
:
Element
)
=>
boolean
Returns
IteratorObject
<
Element
>
@bodil/dom - v0.2.2
Loading...
Return all descendants of
rootwhich match thepredicatefunction.