(a: any, b: any)
| 9 | import {areIterablesEqual, isListLikeIterable} from './iterable'; |
| 10 | |
| 11 | export function devModeEqual(a: any, b: any): boolean { |
| 12 | const isListLikeIterableA = isListLikeIterable(a); |
| 13 | const isListLikeIterableB = isListLikeIterable(b); |
| 14 | if (isListLikeIterableA && isListLikeIterableB) { |
| 15 | return areIterablesEqual(a, b, devModeEqual); |
| 16 | } else { |
| 17 | const isAObject = a && (typeof a === 'object' || typeof a === 'function'); |
| 18 | const isBObject = b && (typeof b === 'object' || typeof b === 'function'); |
| 19 | if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) { |
| 20 | return true; |
| 21 | } else { |
| 22 | return Object.is(a, b); |
| 23 | } |
| 24 | } |
| 25 | } |
no test coverage detected
searching dependent graphs…