Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samuelmarina/is-odd
Is a number odd?
https://github.com/samuelmarina/is-odd
odd
Last synced: 2 days ago
JSON representation
Is a number odd?
- Host: GitHub
- URL: https://github.com/samuelmarina/is-odd
- Owner: samuelmarina
- Created: 2021-08-17T19:56:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-07T09:58:45.000Z (over 3 years ago)
- Last Synced: 2024-12-22T21:06:28.479Z (14 days ago)
- Topics: odd
- Language: JavaScript
- Homepage:
- Size: 53.6 MB
- Stars: 181
- Watchers: 2
- Forks: 22
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# is-odd [![npm](https://img.shields.io/npm/v/@samuelmarina/is-odd?style=plastic)](https://www.npmjs.com/package/@samuelmarina/is-odd) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCJKYubtV1bfbhS-SxTm9Z1A?style=social)](https://youtube.com/sammillervlogs)
> Return true if the number passed is odd, hopefully...## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm install --save @samuelmarina/is-odd
```## How to use it
```js
var isOdd = require('@samuelmarina/is-odd');isOdd(1); //true
isOdd(2); //false
isOdd(3); //true
// And so on... just for a little while
```
## About
This is a 100% serious project, and it is made to help the community. I figured it out that people also would like to know when a number is odd, and with the npm package [@samuelmarina/is-even](https://www.npmjs.com/package/@samuelmarina/is-even) it was not completely clear, so I decided to create this one as well. Remember, all this hard work is because I care about the community### Contributing
PLEASE, MAKE A PULL REQUEST SO WE CAN FINISH THIS PROJECT ASAP. Also, give it a star, for the sake of God.### Author
**Samuel Mariña AKA Samuel Miller**
* [github/samuelmarina](https://github.com/samuelmarina)
* [youtube/sammillervlogs](https://youtube.com/sammillervlogs)### License
Copyright © 2021, [Samuel Mariña](https://github.com/samuelmarina).
Released under the [ISC License](LICENSE).