i have array of object which are sorted based on date/time, I have to form an array of object with latest data from each date?. I\'m getting the solution with for loop but I