@ahmed_gameel/iseven
Version:
function that checks if a number is even or not
29 lines (24 loc) • 729 B
Markdown
# Is even
Is even is a package that checks weather a number is even or not \
If the number is ``even`` it will return ``true``.\
If the number is ``odd`` it will return ``false``.\
If the number is ``0`` it will return ``null``.\
If its ``not a number`` it will return ``undefiend``.
## Installation
```
npm install @ahmed_gameel/iseven
```
or
```
yarn add @ahmed_gameel/iseven
```
## Usage
``` JavaScript
const isEven = require('@ahmed_gameel/iseven');
console.log(isEven(4)) //true
console.log(isEven(9)) //false
console.log(isEven(0)) //null
conosle.log(isEven("12")) //undefiend
```
## Built by
[Ahmed Gameel](https://facebook.com/ahmed.gameel1998) at [Jeem](https://facebook.com/jeemsudan)