JavaScript introduces the new Object.groupBy() method.The new method simplifies the process of organizing data into small buckets.It replaces the need to use reduce() or external libraries like Lodash.Object.groupBy() groups data based on a specific common property.