Thank you for your help all. I understand now and made the changes.
Since I needed return the entire object that contained the max value of X, I used reduce instead of max.
Thank you for your help all. I understand now and made the changes.
Since I needed return the entire object that contained the max value of X, I used reduce instead of max.