2.0.1 • Published 4 years ago

@writetome51/is-integer-is-float v2.0.1

Weekly downloads
23
License
MIT
Repository
github
Last release
4 years ago

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