fn
normalizeMarks
testedCanonicalize a mark set: keep the last occurrence per type (so a re-applied
mark with new attrs wins) and sort by type. The deterministic order is what
makes marksEq an O(n) comparison and keeps the model diff-stable.
Signature
ts
export function normalizeMarks(marks: Marks): Marks{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
marks | Marks | — |
Returns
Marks