Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Van Ginkel committed Jul 29, 2020
1 parent fd9ec06 commit 099764b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@ export const isObject = (obj: unknown): obj is Record<string, unknown> => {
};

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])) {
console.info('[NOT HERE - 2]', first.length, second.length);
return false;
}
}
Expand Down

0 comments on commit 099764b

Please sign in to comment.