Splits a string into substrings of a specified length.
The input string to split.
The maximum length of each substring.
Optional
If true, splits from left to right; otherwise, splits from right to left (default).
true
An array of substrings, each with a maximum length of n.
n
4.0.0
2021-12-14
Splits a string into substrings of a specified length.