Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 385 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 385 Bytes

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';