Prevoiusly I have two object with difference fromGroupName but in fromGroup I have the same fromControlName
Like in the picture
this is the respond API that I have to compare
I want to compare the formcomtrolName of oldAuditLog(formGroupName) to the fromControlName of newAuditLog(formGroupName)
So you have two forms and each form is named something different. You can extract the data from each form and use object notation to compare values.
const oldAuditLog = this.formControlGroup.value
console.log(oldAuditLog.ruleName)
should output "RuleName ", as per your attachment.Let me know if this helps!