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

Function d3_layout_stackMaxIndex

explainshell/web/static/js/d3.v3.js:5710–5719  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

5708 return y0;
5709 }
5710 function d3_layout_stackMaxIndex(array) {
5711 var i = 1, j = 0, v = array[0][1], k, n = array.length;
5712 for (;i < n; ++i) {
5713 if ((k = array[i][1]) > v) {
5714 j = i;
5715 v = k;
5716 }
5717 }
5718 return j;
5719 }
5720 function d3_layout_stackReduceSum(d) {
5721 return d.reduce(d3_layout_stackSum, 0);
5722 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected