const weekMax = Math.max.apply(Math, daysData.map(i => i.apparentTemperatureMax));
  const weekMin = Math.min.apply(Math, daysData.map(i => i.apparentTemperatureMin));

You can use apply() to nest mapped arrays in stuff like Math.min that takes an array (I’m not sure)

usefuljs