Please do not use a filter in this case, this is clearly the place for the function in your controller:
<tr ng-repeat="text in data"> <td>{{isThisAnObject(text)}}</td> </tr>
And in your controller:
$scope.isThisAnObject = function(input) { return angular.isObject(input) ? 'IsObject' : input; };
This is not only less than code, but also in many other places. Filters are designed for a specific purpose. Not this!
Tom bull
source share