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

Use this when you want to organise objects into groups based on numeric ranges within a flow, for example bucketing lots by area band for analysis or styling.

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?