()
| 27 | export function equals<B>(that: B): <A>(self: A) => boolean |
| 28 | export function equals<A, B>(self: A, that: B): boolean |
| 29 | export function equals(): any { |
| 30 | if (arguments.length === 1) { |
| 31 | return (self: unknown) => compareBoth(self, arguments[0]) |
| 32 | } |
| 33 | return compareBoth(arguments[0], arguments[1]) |
| 34 | } |
| 35 | |
| 36 | function compareBoth(self: unknown, that: unknown): boolean { |
| 37 | if (self === that) { |
no test coverage detected