JSPM

@writetome51/is-integer-is-float

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q65858F
  • License MIT

Functions that check if argument is integer or float

Package Exports

  • @writetome51/is-integer-is-float

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@writetome51/is-integer-is-float) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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