• Split text input into an array of text that never exceeds the split length while also not breaking words off. If the text input is an array this means that the array elements should never be split.

    Returns

    Array of text strings that never exceed the split length.

    Parameters

    • textInput: OrReadonlyArray<string>

      The text that should be split.

    • splitLength: number

      The length after which text should be split if possible.

    Returns string[]

Generated using TypeDoc