1.0.0 • Published 3 years ago

@ahmed_gameel/iseven v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

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 at Jeem