UNPKG
@plotly/d3
Version:
latest (3.8.2)
3.8.2
3.8.1
3.8.0
3.7.0
3.6.1
3.6.0
3.5.18
A JavaScript visualization library for HTML and SVG.
d3js.org
plotly/d3
@plotly/d3
/
src
/
selection
/
node.js
12 lines
(10 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
"selection"
; d3_selectionPrototype.node = function() {
for
(
var
j =
0
, m =
this
.length; j < m; j++) {
for
(
var
group =
this
[j], i =
0
, n = group.length; i < n; i++) {
var
node = group[i];
if
(node)
return
node; } }
return
null
; };