fn

normalizeMarks

tested

Canonicalize 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

ParameterTypeDescription
marksMarks—

Returns

Marks