kaven-basic - v6.0.0
    Preparing search index...

    Function SplitByN

    • Splits a string into substrings of a specified length.

      Parameters

      • s: string

        The input string to split.

      • n: number

        The maximum length of each substring.

      • OptionalfromLeft: boolean

        If true, splits from left to right; otherwise, splits from right to left (default).

      Returns string[]

      An array of substrings, each with a maximum length of n.

      4.0.0

      2021-12-14