Skip to content

Instantly share code, notes, and snippets.

@ardeshireshghi
Created May 22, 2020 13:15
Show Gist options
  • Save ardeshireshghi/6f18757f3e6ce42ebe4fd157ca34e1ec to your computer and use it in GitHub Desktop.
Save ardeshireshghi/6f18757f3e6ce42ebe4fd157ca34e1ec to your computer and use it in GitHub Desktop.
Number.isNumber = Number.isNumber ||
value => Number.isFinite(parseInt(value, 10)) && Number.isInteger(parseInt(value, 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment