@writetome51/is-integer-is-float
v2.0.1
Published
Functions that check if argument is integer or float
Downloads
126
Maintainers
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
import { isInteger, notInteger, isFloat } from '@writetome51/is-integer-is-float';