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:
String or array of strings to divide into chunks
Size of each chunk
Optional
Configuration options for chunking behavior
Array of chunks based on input type and options
dividerLoop("abcdef", 2) // returns ["ab", "cd", "ef"]dividerLoop("abcdef", 2, { maxChunks: 2 }) // returns ["ab", "cdef"] Copy
dividerLoop("abcdef", 2) // returns ["ab", "cd", "ef"]dividerLoop("abcdef", 2, { maxChunks: 2 }) // returns ["ab", "cdef"]
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: