Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/writetome51/is-odd-is-even

isOdd(num) and isEven(num)
https://github.com/writetome51/is-odd-is-even

even javascript numbers odd odd-even typescript

Last synced: 12 days ago
JSON representation

isOdd(num) and isEven(num)

Awesome Lists containing this project

README

        

# isOdd(integer): boolean
# isEven(integer): boolean

## Examples
```
isOdd(2); // --> false

isEven(2); // --> true

isEven(2.2); // --> 'Error: input must be integer'

isEven('2'); // --> 'Error: input must be finite number of type "number"'
```

## Installation
`npm i @writetome51/is-odd-is-even`

## Loading
```js
import { isOdd, isEven} from '@writetome51/is-odd-is-even';
```