@writetome51/is-odd-is-even
v2.0.0
Published
2 functions that check if given integer is odd or even
Downloads
13
Maintainers
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
import { isOdd, isEven} from '@writetome51/is-odd-is-even';