Splits a given string into chunks of a specified size.
The string to be split into chunks.
Optional
The size of each chunk. Defaults to 32760. Can be a number or a bigint.
An array of strings, where each string is a chunk of the original data.
If chunkSize is 0.
chunkSize
If data is not a string.
data
If chunkSize is neither a number nor a bigint.
Splits a given string into chunks of a specified size.