Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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?

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).