(obj: any)
| 41 | const functionToString = Function.prototype.toString |
| 42 | |
| 43 | export function isAsymmetric(obj: any): obj is AsymmetricMatcher<any> { |
| 44 | return ( |
| 45 | !!obj |
| 46 | && typeof obj === 'object' |
| 47 | && 'asymmetricMatch' in obj |
| 48 | && isA('Function', obj.asymmetricMatch) |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | export function hasAsymmetric(obj: any, seen: Set<any> = new Set()): boolean { |
| 53 | if (seen.has(obj)) { |
no test coverage detected