export const isIdentical = (obj1, obj2) => {
let arr = new Array;
let i = 0;
for (const key1 in obj1) {
arr[i] = false;
for (const key2 in obj2) {
console.log(`${obj1[key1]}`, `${obj2[key2]}`);
if (`${obj1[key1]}` === `${obj2[key2]}`) {
arr[i] = true;
}
}
i++;
}
for (let j = 0; j < arr.length; j++) {
console.log(arr[j]);
if (arr[j] === false) {
return false;
}
}
return true;
}
Help would be much appreciated!