Take the following two objects.
filterForm = {'claim_number': null, 'status': 'approved', 'patient': null, 'service_date': null}
this.rows = [
{ "claim_number": '6632224-3', 'patient': 'Janine Soprano', 'allowed_amount':'$100', 'service': 'medical', 'status': 'approved', 'provider': 'Sam Smith'},
{ "claim_number": '3218458-0', 'patient': 'Samatha Snow', 'allowed_amount':'$1100', 'service': 'medical', 'status': 'approved', 'provider': 'John Smith'}
How can I loop through this.rows and check to see which of it's Object keys match the keys of filterForm? I've seen post about checking if an object matches another exactly, but I'm only interested in looping through the object to check which keys match.
Subsequently, once I establish which keys match how can I then check to see which values match?