Skip to content

writetome51/is-odd-is-even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published