@ahmed_gameel/iseven

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @ahmed_gameel/iseven

      Weekly Downloads

      0

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      1.3 kB

      Total Files

      3

      Last publish

      Collaborators

      • ahmed_gameel