Why this matters
Prevents drift between validation points and types.
Avoid maintaining multiple equivalent validators for the same shape; centralize checks in a single function/schema.
Prevents drift between validation points and types.
Side-by-side examples engineers can pattern-match during review.
function isUser1(o){/* same checks */} function isUser2(o){/* same checks */}function isUser(o){ /* single check */ } // reuse everywhereisUser1 and isUser2 with identical logicsingle isUser validator reusedFrom the same buckets as this rule.