---
title: groupAtBreaks
description: >-
  Split nodes into slides at each break. The breaks go, and so do slides with
  only blank nodes.
updated_at: '2026-10-04T04:04:56+02:00'
created_at: '2026-10-04T04:04:56+02:00'
symbol:
  kind: function
  name: groupAtBreaks
  signatures:
    - >-
      groupAtBreaks<T>(nodes: readonly T[], isBreak: (node: T) => boolean,
      isBlank?: (node: T) => boolean): T[][]
  typeParameters:
    - name: T
  parameters:
    - name: nodes
      type: 'readonly T[]'
    - name: isBreak
      type: '(node: T) => boolean'
    - name: isBlank
      type: '(node: T) => boolean'
      optional: true
  returns:
    type: 'T[][]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/browser-presentation.ts#L53
---

# groupAtBreaks
