MCPcopy Create free account
hub / github.com/idank/explainshell / d3_selection_each

Function d3_selection_each

explainshell/web/static/js/d3.v3.js:1020–1027  ·  view source on GitHub ↗
(groups, callback)

Source from the content-addressed store, hash-verified

1018 });
1019 };
1020 function d3_selection_each(groups, callback) {
1021 for (var j = 0, m = groups.length; j < m; j++) {
1022 for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) {
1023 if (node = group[i]) callback(node, i, j);
1024 }
1025 }
1026 return groups;
1027 }
1028 d3_selectionPrototype.call = function(callback) {
1029 var args = d3_array(arguments);
1030 callback.apply(args[0] = this, args);

Callers 2

d3.v3.jsFile · 0.85
d3_transition_tweenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected