MCPcopy Index your code
hub / github.com/plotly/plotly.js / arrayMax

Function arrayMax

src/traces/table/data_preparation_helper.js:103–112  ·  view source on GitHub ↗
(maybeArray)

Source from the content-addressed store, hash-verified

101};
102
103function arrayMax(maybeArray) {
104 if(isArrayOrTypedArray(maybeArray)) {
105 var max = 0;
106 for(var i = 0; i < maybeArray.length; i++) {
107 max = Math.max(max, arrayMax(maybeArray[i]));
108 }
109 return max;
110 }
111 return maybeArray;
112}
113
114function sum(a, b) { return a + b; }
115

Callers 1

Calls 1

isArrayOrTypedArrayFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…