UNPKG

d3

Version:

A small, free JavaScript library for manipulating documents based on data.

10 lines (9 loc) 252 B
d3_selectionPrototype.node = function(callback) { 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; };