79817997

Date: 2025-11-12 16:39:32
Score: 1.5
Natty:
Report link

Yet another variant with checking set of keys:

function areEqual(one: keyof A extends 'x' | 'y' ? A : unknown, another: A): boolean {
    return one.x === another.x && one.y === another.y;
}

https://tsplay.dev/NaM82N

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandroppolus