Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/v3xlabs/is-probably-even

Is probably even, exactly how you expect it to work
https://github.com/v3xlabs/is-probably-even

javascript npm yarn

Last synced: about 1 month ago
JSON representation

Is probably even, exactly how you expect it to work

Awesome Lists containing this project

README

        

# is-probably-even [![npm](https://img.shields.io/npm/v/is-probably-even)](https://www.npmjs.com/package/lucemans/is-probably-even) [![luc.computer](https://img.shields.io/badge/luc.computer-online-blue)](https://luc.computer/)

> Return true if the number passed is even, hopefully...

> Disclaimer: This project only works as intended 50% of the time, this is by design, probablities can be tweaked :smirk:

## Install

Install with [yarn](https://www.yarnpkg.com)

```sh
$ yarn add is-probably-even
```

Install with [npm](https://www.npmjs.com/)

```sh
$ npm install --save is-probably-even
```

## How to use it

```js
var isEven = require('is-probably-even');

isEven(1); //false, or true 🤷
isEven(2); //true, or false 🤷
isEven(3); //false, or true 🤷
// And so on... just for a little while
```

## About

This is a 100% not a serious project, and it is made to help the community laugh. There are a lot of cases where young developers face the issue of finding if a number is maybe but not really even, so I decided to help them by creating this beautiful humorous package. Hopefully, some day it will be completed...

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.