code: function getPixelValues (pixelData) {
    let minPixelValue = Number.MAX_VALUE;
    let maxPixelValue = Number.MIN_VALUE;
    const len = pixelData.length;
    let pixel;
  
    for (let i = 0; i < len; i++) {
      pixel = pixelData[i];
      minPixelValue = minPixelValue < pixel ? minPixelValue : pixel;
      maxPixelValue = maxPixelValue > pixel ? maxPixelValue : pixel;
    }
  
    return {
      minPixelValue,
      maxPixelValue
    };
  }
docs: Retrieves the minimum and maximum pixel values from an Array of pixel data
  
  @param {Array} pixelData The input pixel data array
  
  @returns {{minPixelValue: Number, maxPixelValue: Number}} The minimum and maximum pixel values in the input Array