UNPKG

d3

Version:

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

10 lines (9 loc) 279 B
d3_selectionPrototype.each = function(callback) { for (var j = -1, m = this.length; ++j < m;) { for (var group = this[j], i = -1, n = group.length; ++i < n;) { var node = group[i]; if (node) callback.call(node, node.__data__, i, j); } } return this; };