MCPcopy Create free account
hub / github.com/breck7/scroll / node_each

Function node_each

external/.d3.js:13024–13030  ·  view source on GitHub ↗
(callback, that)

Source from the content-addressed store, hash-verified

13022}
13023
13024function node_each(callback, that) {
13025 let index = -1;
13026 for (const node of this) {
13027 callback.call(that, node, ++index, this);
13028 }
13029 return this;
13030}
13031
13032function node_eachBefore(callback, that) {
13033 var node = this, nodes = [node], children, i, index = -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected