Skip to content

groupRuns beta ​

Function of @v12-engine/editor

ts
export declare function groupRuns<Field>(fields: readonly Field[], groupOf: (field: Field) => string | undefined): {
    group?: string;
    fields: Field[];
}[];

The consecutive fields of a list that say one group, as a group's run, the rest each alone: in the order of the list