Skip to content

writetome51/is-integer-is-float

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Functions that check if argument is integer or float

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published