Skip to main content

Group By Function

Problem 18intermediate20 mins

Group By Function

Created on: 5 Sep 2025, 4:00 PM

Time Elapsed
00:00
Problem Description

Create a groupBy function that groups array elements by a key or function.

Requirements

  • •Group by key
  • •Group by function
  • •Return object
  • •Handle nested grouping
  • •Preserve original data

Tags

JavaScriptArraysObjectsGrouping
Code Editor

Loading editor...