Skip to content

cluster

Splits a single list into many lists of the desired size.

Usage

cluster([1, 2, 3, 4, 5, 6], 2); // [[1, 2], [3, 4], [5, 6]]

Installation

Terminal window
npx atmx add helper cluster