An open API service indexing awesome lists of open source software.

https://github.com/ascpixi/is-odd

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)
https://github.com/ascpixi/is-odd

is-even is-odd is-odd-or-even javascript javascript-library js more-is-more wet

Last synced: about 1 year ago
JSON representation

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)

Awesome Lists containing this project

README

          

# is-odd
include `is-odd.js` in your website:
```html

```
...then simply call the "isOdd()" function!
```js
console.log(isOdd(2)); // returns false
```
it's that simple! (¬‿¬)

> [!NOTE]
> you might be interested in the new, JIT compiled version, [is-odd-jit](https://github.com/ascpixi/is-odd-jit)!