There is one way where in you can make the isNaN function available in html i.e. by assigning it in scope/this of the current controller.
this.isNaN = function(value){ //or $scope.isNaN = function(value){
return isNaN(value);
}
which when used in HTML,
<span ng-class="{'color-red':!isNaN(value)}" ng-bind="value"></span>
I suppose for any kind of Javascript Native functions which I might require inside HTML, I prefer making a copy of windows object in rootScope.
$rootScope.windowInstance = window;
this will allow us to use any kind of window functions in html,
<span
ng-class="{'color-red' : !windowInstance['isNaN'](value) && windowInstance['parseFloat'](value) < 0}"
ng-bind="value">
</span>
<!-- Will color the value red when the value is Number and negative -->