Skip to content

Instantly share code, notes, and snippets.

@parambirs
Created June 25, 2018 19:22
Show Gist options
  • Save parambirs/7321e2cf3f5f31a1058e72bb37660973 to your computer and use it in GitHub Desktop.
Save parambirs/7321e2cf3f5f31a1058e72bb37660973 to your computer and use it in GitHub Desktop.
isSafeInteger() method in Number
Number.isSafeInteger(3.4); // false
Number.isSafeInteger(3); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment