Set Up
How to set up the Repeater module to do this?
You can directly calculate the number of chunks needed in the Repeater module. The trick is the “Step” field, to increment the i
variable based on the output array (single chunk) size.
In this example, we are using a chunk size of 4
.
-
Since the
slice
function begins from index 0 (first item of the array), the Initial value must be set to0
. -
To calculate how many Repeats (output operations) we need to chunk them into the array size limit, we use the
length
function to get the total amount of items in the original array, and divide by the chunk size. -
Then, the Step field will simply be just the chunk size.
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!