code: function getMinMaxValues(arr) {
      let maxValue = Number.MIN_VALUE;
      let minValue = Number.MAX_VALUE;
      arr
        .forEach((d) => {
          if (d.value > maxValue) {
            maxValue = d.value;
          }
          if (d.value < minValue) {
            minValue = d.value;
          }
        });
        return {maxValue, minValue};
    }
docs: Find minimum and maximum value in an array of numbers