arty-charty/util.js
function getMaxSumStack(arr) { //here!!!
    let maxValue = Number.MIN_VALUE;
    arr
      .forEach((d) => {
        let stackSum = computeArrayValueSum(d);
        if (stackSum > maxValue) {
          maxValue = stackSum;
        }
      });
      return maxValue;
  }
function getMaxSumStack(arr) { //here!!!
    let maxValue = Number.MIN_VALUE;
    arr
      .forEach((d) => {
        let stackSum = computeArrayValueSum(d);
        if (stackSum > maxValue) {
          maxValue = stackSum;
        }
      });
      return maxValue;
  }
function getMaxSumStack ( arr ) { //here!!! let maxValue = Number . MIN_VALUE ; arr . forEach ( ( d ) => { let stackSum = computeArrayValueSum ( d ) ; if ( stackSum > maxValue ) { maxValue = stackSum ; } } ) ; return maxValue ; }
Find maximum stacksum
Find maximum stacksum