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

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

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';
```