Skip to content
/ is-odd Public

an incredible JavaScript library allowing you to determine if a number is odd or even, based on the WET principle (https://en.wikipedia.org/wiki/Don%27t_repeat_yourself#WET)

License

Notifications You must be signed in to change notification settings

ascpixi/is-odd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

is-odd

include is-odd.js in your website:

<script src="is-odd.js" defer>

...then simply call the "isOdd()" function!

console.log(isOdd(2)); // returns false

it's that simple! (¬‿¬)

Note

you might be interested in the new, JIT compiled version, is-odd-jit!

About

an incredible JavaScript library allowing you to determine if a number is odd or even, based on the WET principle (https://en.wikipedia.org/wiki/Don%27t_repeat_yourself#WET)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published