Skip to content

Instantly share code, notes, and snippets.

@RinatMullayanov
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RinatMullayanov/373a91e78c10e3549619 to your computer and use it in GitHub Desktop.
Save RinatMullayanov/373a91e78c10e3549619 to your computer and use it in GitHub Desktop.
// проверка на NaN
/*
NaN является
единственным JavaScript-значением, которое считается
неравным самому себе, вы всегда можете протестировать
переменную на значение NaN путем проверки ее на нера-
венство самой себе:
*/
function isReallyNaN(x) {
return x !== x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment