empty object check in angular 6 code example Example: Angular empty object angular.equals({}, $scope.card)