I want to match for equality in both the objects. In the below objects, object 1 has null or " " value in the streetLines Array ,so i need to check for the same property in the other object whether it has value for the same. How do i compare both the objects property by property.
Object 1:
address:Object
city:"QUEBEC"
Code:"CA"
postalCode:"G2E5H5"
stateCode:"PQ"
streetLines:Array[2]
0:"120 TERN CRT"
1:""
Object 2:
address:Object
city:"QUEBEC"
Code:"CA"
postalCode:"G2E5H5"
residential:false
stateCode:"PQ"
streetLines:Array[1]
0:"120 TERN CRT"