Skip to main content

Group by Ranges

Group items in a list by ranges of a key. lower bound is inclusive, upper bound is exclusive.

Written by Holly Conrad Smith
Updated over a month ago

Inputs:

List: (any): The list to group.

Key: (string): The key to group by.

Ranges: (any[ ... ]): The ranges to group by.

Outputs:

Groups: (object[ ... ]): The groups.

Did this answer your question?