Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bjarneo/is-whole-number

Check if a number is a whole number.
https://github.com/bjarneo/is-whole-number

Last synced: 3 days ago
JSON representation

Check if a number is a whole number.

Awesome Lists containing this project

README

        

is-whole-number
======

What
------
Check if a number is a whole number.

Installation
------
```
$ npm install --save is-whole-number
```

Usage
------
```javascript
var isWholeNumber = require('is-whole-number');

console.log(isWholeNumber(1));
// True

console.log(isWholeNumber(1.2));
// False
```

Test
------
```
npm test
```

Contribution
------
Contributions are appreciated.

License
------
MIT-licensed. See LICENSE.