https://github.com/writetome51/is-integer-is-float
Functions that check if argument is integer or float
https://github.com/writetome51/is-integer-is-float
float integer javascript
Last synced: 11 months ago
JSON representation
Functions that check if argument is integer or float
- Host: GitHub
- URL: https://github.com/writetome51/is-integer-is-float
- Owner: writetome51
- License: mit
- Created: 2019-04-06T23:31:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T21:32:47.000Z (over 5 years ago)
- Last Synced: 2025-02-02T16:18:07.612Z (11 months ago)
- Topics: float, integer, javascript
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# isInteger(arg): boolean
Returns true only if `arg` is integer of type 'number'.
( If `arg` ends with .0 (i.e, 1.0), this returns true. )
# notInteger(arg): boolean
# isFloat(arg): boolean
Returns true only if `arg` is float of type 'number'.
( If arg ends with .0 (i.e, 1.0), this returns false. )
## Installation
`npm i @writetome51/is-integer-is-float`
## Loading
```js
import { isInteger, notInteger, isFloat } from '@writetome51/is-integer-is-float';
```