🌱 Looking through some of the logic-focused functions in sleep.js, there are a few similarities between some of them. Take note of the similarities between calculateAvgHoursSlept and calculateAvgSleepQuality. Is there anyway we can combine these functions into one using bracket notation? Similarly, could the same be done for findSleepHourDay and findSleepQualityDay? Make sure to update tests based on any refactoring.
🌱 Looking through some of the logic-focused functions in sleep.js, there are a few similarities between some of them. Take note of the similarities between calculateAvgHoursSlept and calculateAvgSleepQuality. Is there anyway we can combine these functions into one using bracket notation? Similarly, could the same be done for findSleepHourDay and findSleepQualityDay? Make sure to update tests based on any refactoring.