Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samuelmarina/is-even
Is a number even?
https://github.com/samuelmarina/is-even
even
Last synced: 29 days ago
JSON representation
Is a number even?
- Host: GitHub
- URL: https://github.com/samuelmarina/is-even
- Owner: samuelmarina
- Created: 2021-08-16T03:45:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T12:41:23.000Z (7 months ago)
- Last Synced: 2024-11-17T16:11:50.623Z (about 2 months ago)
- Topics: even
- Homepage:
- Size: 15.3 MB
- Stars: 1,848
- Watchers: 7
- Forks: 192
- Open Issues: 154
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hilarious-repos - Is Even - Is a number even? (Libraries, Frameworks and SDKs)
README
# is-even [![npm](https://img.shields.io/npm/v/@samuelmarina/is-even)](https://www.npmjs.com/package/@samuelmarina/is-even) [![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 even, hopefully...## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm install --save @samuelmarina/is-even
```## How to use it
```js
var isEven = require('@samuelmarina/is-even');isEven(1); //false
isEven(2); //true
isEven(3); //false
// And so on... just for a little while
```
## About
This is a 100% serious project, and it is made to help the community. There are a lot of cases where young developers face the issue of finding if a number is even, so I
decided to help them by creating this beautiful package. Hopefully, someday it will be completed...
It is also important to know if a number is odd, so additionally I created this other package [@samuelmarina/is-odd](https://www.npmjs.com/package/@samuelmarina/is-odd)### 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).