is-32

check if a number is a 32 bit integer

Usage no npm install needed!

<script type="module">
  import is32 from 'https://cdn.skypack.dev/is-32';
</script>

README

is-32

CircleCI NPM Downloads node License MIT

check if a number is a 32 bit integer

Highlights

  • Written in Typescript

Usage

check if a number is a 32 bit integer


  import is32 from 'is-32';

  is32(2147483647); //true
  is32(-2147483648); //true
  is32(Number.MAX_SAFE_INTEGER); //false
  is32(10); //true
  is32(-0); //true

License

MIT © Nivrith