Sign in
chromium
/
external
/
github.com
/
SeleniumHQ
/
selenium
/
refs/heads/api-docs-4.30.0-all
/
.
/
node_modules
/
dom-helpers
/
esm
/
childNodes.js
blob: 7d5578ebbca562cc35862ae33f9e6d12f8dd1c1c [
file
] [
log
] [
blame
] [
edit
]
var
toArray
=
Function
.
prototype
.
bind
.
call
(
Function
.
prototype
.
call
,
[].
slice
);
/**
* Collects all child nodes of an element.
*
* @param node the node
*/
export
default
function
childNodes
(
node
)
{
return
node
?
toArray
(
node
.
childNodes
)
:
[];
}