The object must be same with key and their length.
const compareObj = (body, ccObject) => {
try {
if (JSON.stringify(body) === JSON.stringify(ccObject))
return true;
else
return false;
}
catch (e) {
log.error(“error@compareObj”, e);
return true;
}
}
The object must be same with key and their length.
const compareObj = (body, ccObject) => {
try {
if (JSON.stringify(body) === JSON.stringify(ccObject))
return true;
else
return false;
}
catch (e) {
log.error(“error@compareObj”, e);
return true;
}
}