Split a string into an array of chunkLength strings. The final string may have a length between 1 and chunkLength.
chunkLength
E.g.: splitEvery('abcde', 2) → ['ab', 'cd', 'e']
splitEvery('abcde', 2)
['ab', 'cd', 'e']
Generated using TypeDoc
Split a string into an array of
chunkLength
strings. The final string may have a length between 1 andchunkLength
.E.g.:
splitEvery('abcde', 2)
→['ab', 'cd', 'e']