source:
node_modules/d3-hierarchy/src/hierarchy/find.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 172 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | export default function(callback, that) { |
| 2 | let index = -1; | |
| 3 | for (const node of this) { | |
| 4 | if (callback.call(that, node, ++index, this)) { | |
| 5 | return node; | |
| 6 | } | |
| 7 | } | |
| 8 | } |
Note:
See TracBrowser
for help on using the repository browser.
