Function segmentEntries

  • Separate entries into segments at boundaries. Always returns an entrySegments with at least one segment.

    Parameters

    • currentEntries: Entry[]
    • lastEntries: Entry[]
    • lastDiffs: EntryDiff[]
    • updates: Update[]
    • isBoundary: IsBoundary

    Returns [Entry[][], EntryDiff[][], boolean]