String or array of strings to divide into chunks
Size of each chunk
Optional
options: DividerLoopOptionsConfiguration options for chunking behavior
Optional
exclude?: DividerExcludeModeControls how empty or whitespace segments are handled
Optional
flatten?: booleanIf true, flattens nested arrays into a single array
Optional
maxChunks?: numberMaximum number of chunks to produce
Optional
startOffset?: numberStarting position for the division (0-based)
Optional
trim?: booleanIf true, trims whitespace from each divided segment
Array of chunks based on input type and options
Divides input into chunks of specified size with optional configuration.
This function provides a way to split input into equal-sized chunks with additional control: