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)
- Host: GitHub
- URL: https://github.com/ascpixi/is-odd
- Owner: ascpixi
- License: other
- Created: 2022-06-20T22:29:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T06:57:59.000Z (about 2 years ago)
- Last Synced: 2025-03-22T21:51:08.157Z (about 1 year ago)
- Topics: is-even, is-odd, is-odd-or-even, javascript, javascript-library, js, more-is-more, wet
- Language: JavaScript
- Homepage:
- Size: 2.16 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)!