Function splitEvery

  • Split a string into an array of chunkLength strings. The final string may have a length between 1 and chunkLength.

    E.g.: splitEvery('abcde', 2)['ab', 'cd', 'e']

    Parameters

    • input: string
    • chunkLength: number

    Returns string[]

Generated using TypeDoc