writetome51 / is-odd-is-even

isOdd(num) and isEven(num)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

isOdd(num) and isEven(num)

License:MIT License


Languages

Language:JavaScript 100.0%