Skip to content

Instantly share code, notes, and snippets.

@ihorkatkov
Last active August 29, 2015 14:25
Show Gist options
  • Save ihorkatkov/515c11649fa127ab8fa3 to your computer and use it in GitHub Desktop.
Save ihorkatkov/515c11649fa127ab8fa3 to your computer and use it in GitHub Desktop.
[JS] Проверка на число
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment