How do i get desired result by comparing array of object with object in Javascript?
I have below sample data array of object and submittedValue object. The data array of object is constant it won't change but submitttedValue object will change as user proceed with the answer. I have put below desired result need to…