Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Created November 3, 2010 09:01
Show Gist options
  • Save geraldyeo/660891 to your computer and use it in GitHub Desktop.
Save geraldyeo/660891 to your computer and use it in GitHub Desktop.
very fast isNaN()
private function myNewIsNaN(val:Number): Boolean
{
return val != val;
}
val != val; // inline isNaN()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment