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

Function node_find

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

Source from the content-addressed store, hash-verified

13059}
13060
13061function node_find(callback, that) {
13062 let index = -1;
13063 for (const node of this) {
13064 if (callback.call(that, node, ++index, this)) {
13065 return node;
13066 }
13067 }
13068}
13069
13070function node_sum(value) {
13071 return this.eachAfter(function(node) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected