Groups the elements of an array based on a specified criterion.
Asked in frontend interviews at LinkedIn and ThoughtSpot