4 lines
112 B
TypeScript
4 lines
112 B
TypeScript
export function eq(value: any, other: any) {
|
|
return value === other || (value !== value && other !== other)
|
|
}
|