Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bjarneo/is-whole-number
- Owner: bjarneo
- License: mit
- Created: 2015-12-16T19:52:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-09T21:00:50.000Z (over 8 years ago)
- Last Synced: 2024-10-08T18:24:24.430Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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));
// Trueconsole.log(isWholeNumber(1.2));
// False
```Test
------
```
npm test
```Contribution
------
Contributions are appreciated.License
------
MIT-licensed. See LICENSE.