https://github.com/writetome51/error-if-not-integer
Function triggers error if argument is not integer of type 'number'
https://github.com/writetome51/error-if-not-integer
error integer javascript message not
Last synced: 3 months ago
JSON representation
Function triggers error if argument is not integer of type 'number'
- Host: GitHub
- URL: https://github.com/writetome51/error-if-not-integer
- Owner: writetome51
- License: mit
- Created: 2019-04-05T23:31:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T23:39:47.000Z (over 5 years ago)
- Last Synced: 2025-02-11T15:51:04.172Z (11 months ago)
- Topics: error, integer, javascript, message, not
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# errorIfNotInteger(arg): void
Triggers error if `arg` is not integer of type 'number' .
## Installation
`npm i error-if-not-integer`
## Loading
```js
import { errorIfNotInteger } from 'error-if-not-integer';
```