is-sn-integer
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

is-sn-integer

Check if a string or a number is an integer.

Install

npm install is-sn-integer

Usage

CommonJS

const is-sn-integer = require('is-sn-integer');

Module

import isIinteger from 'is-sn-integer';

Output

isInteger("1")         //true
isInteger("1.1")       //false
isInteger("2")         //true
isInteger("10.5")      //false
isInteger(1)           //true
isInteger(10.1)        //false
isInteger(NaN)         //false
isInteger(undefined)   //false

Readme

Keywords

none

Package Sidebar

Install

npm i is-sn-integer

Weekly Downloads

34

Version

0.3.0

License

Unlicense

Unpacked Size

3.61 kB

Total Files

8

Last publish

Collaborators

  • wc-yat