Documentation
    Preparing search index...

    Function splitDeltas

    • Split text into word-grouped delta chunks whose concatenation is the text.

      Parameters

      • text: string

        Text to split.

      • wordsPerDelta: number = 3

        Words per chunk. Default 3.

      Returns string[]

      Non-empty list of chunks.

      splitDeltas('a b c d', 3); // ['a b c', ' d']