diff --git a/src/utils/index.ts b/src/utils/index.ts index 711399c..b72dcb0 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -3,18 +3,23 @@ export const isObject = (obj: unknown): obj is Record => { }; export const strictDeepEqual = (first: unknown, second: unknown): boolean => { + console.info('strictDeepEqual', first, second); if (first === second) { return true; } if (typeof first !== typeof second) { + console.info('[NOT HERE - 1]', typeof first, typeof second); return false; } if (Array.isArray(first) && Array.isArray(second)) { if (first.length !== second.length) { + console.info('[NOT HERE - 2]', first.length, second.length); + return false; } for (let i = 0; i < first.length; i += 1) { - if (!strictDeepEqual(first[i], second)[i]) { + if (!strictDeepEqual(first[i], second[i])) { + console.info('[NOT HERE - 2]', first.length, second.length); return false; } }