SyntaxFix
Write A Post
Hire A Developer
Questions
Why not simply use angular.isObject with negation? e.g.
angular.isObject
if (!angular.isObject(obj)) { return; }