2024-11-05 10:09:18 +08:00

4 lines
112 B
TypeScript

export function eq(value: any, other: any) {
return value === other || (value !== value && other !== other)
}