I am trying to work with an object structured like this :
$scope.contact = {
name: contact.gd$name.gd$givenName.$t,
familyName: contact.gd$name.gd$familyName.$t,
phone: contact.gd$phoneNumber[0].$t,
mail: contact.gd$email[0].address,
organization: contact.gd$organization[0].gd$orgTitle.$t
};
Is there a way to efficiently inspect this object to check if any of its properties are null or undefined, and then report which ones they are?
I could use a loop for this task, but I am curious if there is a quicker method available.