Is it possible to write something like:
if( * === NaN){
this = 0;
};
What I'm trying to do is catch any math or variables that calculate as NaN and make them equal to 0. I could write the same if statement for each time math is done but it would be messy and I was hoping there was a simple solution like this.